Definition:
function email_exists( $email ) {}
Checks whether the given email exists.
Parameters
- string $email: Email.
Return values
returns:The user’s ID on success, and false on failure.
Source code
function email_exists( $email ) { if ( $user = get_user_by('email', $email) ) return $user->ID; return false; }
9272
No comments yet... Be the first to leave a reply!