Fungsi untuk mengambil detail pengguna

$user = get_user_by( 'email', '[email protected]' );
$user = get_user_by('login', $username);
echo 'User is ' . $user->first_name . ' ' . $user->last_name;
Loreto