📅  最后修改于: 2022-03-11 14:54:34.955000             🧑  作者: Mango
$user = get_user_by( 'email', 'user@example.com' );
$user = get_user_by('login', $username);
echo 'User is ' . $user->first_name . ' ' . $user->last_name;