Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress get user data from email

get_user_by( string $field, int|string $value )

Example:
$user = get_user_by( 'email', 'user@example.com' );
echo 'User is ' . $user->first_name . ' ' . $user->last_name;
 
PREVIOUS NEXT
Tagged: #wordpress #user #data #email
ADD COMMENT
Topic
Name
6+1 =