$user = get_user_by( 'email', 'user@example.com' ); $user = get_user_by('login', $username); echo 'User is ' . $user->first_name . ' ' . $user->last_name;