- This topic has 3 replies, 2 voices, and was last updated 1 year, 4 months ago by .
-
Topic
-
Hi, I’m looking for ways to check if email already exists when a user sign in.
I saw the documentation and found:
do_action( 'rwmb_profile_before_save_user', $object );
but I do not know how to use this action to make a check like this:$email = 'myemail@example.com'; $exists = email_exists( $email ); if ( $exists ) { echo 'That E-mail is registered to user number ' . esc_html( $exists ); } else { echo 'That E-mail doesn\'t belong to any registered users on this site'; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.