de

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




email_exists [ WordPress Function ]

email_exists ( $email )
Parameter:
  • (string) $email Email.
Nutzt:
  • $wpdb
Gibt zurück:
  • (bool|int) The user's ID on success, and false on failure.
Definiert in:



Checks whether the given email exists.

Source


<?php
function email_exists$email ) {
    if ( 
$user get_user_by('email'$email) )
        return 
$user->ID;

    return 
false;
}
?>

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics