• I’ve tried finding information but couldn’t find it so far. I’m building a membership site along with registration and login system and members only event registration. It has email address checker to check if the user is in the system and it works fine but it’s not what I’m looking for. I’d like to know if there’s something that checks any incoming email address and check if it’s in the system. If it’s not, then prevent the registration getting through by leaving error message that the person needs to join as a member first in order to register for event. Does anyone know what’s the php code that simply checks email address NOT in the system? Thanks.

Viewing 1 replies (of 1 total)
  • anonymized-15380454

    (@anonymized-15380454)

    You can use email_exists(), like so:

    if ( email_exists( $email ) ) {
    	// Email address is registered. Let's proceed.
    	// Do whatever logic here...
    } else {
    	// Email address is not registered. Show error.
    	echo 'To register for this event, please become a member first.';
    }
    • This reply was modified 7 years, 1 month ago by anonymized-15380454.
Viewing 1 replies (of 1 total)
  • The topic ‘Email address checker if not on WP users list’ is closed to new replies.