Function: get_user_by_email

get_user_by_email( string $email )

Retrieve user info by email.

Parameters

Name Type(s) Default Value Description
$email string

User's email address

Returns

boolean | object

False on failure, User DB row object

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.