Un motore di ricerca WordPress per sviluppatori e autori di temi



email_exists ›

Da2.1.0
Deprecaton/a
email_exists ( $email )
Parametri:
  • (string) $email Email.
    Richiesto:
Ritorna:
  • (int|false) The user's ID on success, and false on failure.
Definito a:
Codex:

Determines whether the given email exists.

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.



Sorgenti

function email_exists( $email ) {
	$user = get_user_by( 'email', $email );
	if ( $user ) {
		return $user->ID;
	}
	return false;
}