Answers for "wordpress get user data from email"

PHP
0

wordpress get user data from email

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

Example:
$user = get_user_by( 'email', '[email protected]' );
echo 'User is ' . $user->first_name . ' ' . $user->last_name;
Posted by: Guest on October-28-2021

Code answers related to "wordpress get user data from email"

Browse Popular Code Answers by Language