if ( !
in_array( $emaildomain,
$limited_email_domains, true
) ) { $errors->
add( 'user_email',
__( 'Sorry, that email address is not allowed!'
) );
} } // Check if the username has been used already.
if ( username_exists( $user_name ) ) { $errors->
add( 'user_name',
__( 'Sorry, that username already exists!'
) );
} // Check if the email address has been used already.
if ( email_exists( $user_email ) ) { $errors->
add( 'user_email',
sprintf( /* translators: %s: Link to the login page. */
__( '<strong>Error:</strong> This email address is already registered. <a href="%s">Log in</a> with this address or choose another one.'
),
wp_login_url() ) );
} // Has someone already signed up for this username?