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; }
1010
No comments yet... Be the first to leave a reply!