Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




email_exists [ WordPress Function ]

email_exists ( $email )
Parameters:
  • (string) $email Email.
Uses:
  • $wpdb
Returns:
  • (bool|int) The user's ID on success, and false on failure.
Defined at:



Checks whether the given email exists.

Source


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

    return 
false;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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