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;