WordPress 根据用户邮箱获取用户
$user = get_user_by( 'email', 'user@02405.com' );
WordPress 根据用户ID获取用户
$user_ID = get_current_user_id();
$user = get_user_by( 'id', $user_ID );
(adsbygoogle = window.adsbygoogle || []).push({});
来源:https://www.02405.com/archives/7857