get_user_by_email

Retrieve user info by email.

Description

(bool|object) get_user_by_email( (string) $email ); 

Returns (bool|object)

False on failure, User DB row object

Parameters (1)

0. $email (string)
User's email address

Usage

  1. if ( !function_exists( 'get_user_by_email' ) ) { 
  2. require_once ABSPATH . WPINC . '/pluggable-deprecated.php'; 
  3.  
  4. // User's email address 
  5. $email = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_user_by_email($email); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/pluggable-deprecated.php  
  1. function get_user_by_email($email) { 
  2. _deprecated_function( __FUNCTION__, '3.3.0', "get_user_by('email')" ); 
  3. return get_user_by('email', $email);