<?php global $current_user;
get_currentuserinfo();
echo '用户名: ' . $current_user->user_login . "
";
echo '用户邮箱: ' . $current_user->user_email . "
";
echo '名字: ' . $current_user->user_firstname . "
";
echo '姓氏: ' . $current_user->user_lastname . "
";
echo '公开显示名: ' . $current_user->display_name . "
";
echo '用户 ID:' . $current_user->ID . "
";
?>