-
ADEGBAYI posted an update 8 years, 11 months ago
Hi,
You overlay custom registration page does not display any error when there is a duplicate email. I added the snippet in the file ajax_register.php file:if (email_exists($email) ){
$txt = __( “Entered email is already in use.”, ‘onesocial’ );
echo ‘
jQuery(“#ajax_register_messages”).html(“‘ . escapeJavaScriptText( $txt ) . ‘”);
jQuery(“#register_email”).focus();
‘;
exit;}
The code works, however it is not recommended especially for future updates. Where do I add such custom code in child-theme?