我确实在按当前用户筛选帖子,但在我的下拉列表中,我只能得到所有用户列表,但我只需要看到当前用户
function getСurrentUserForFilter(){
$res = \'\';
$user_query = new WP_User_Query(array(\'number\'=>999));
$users = $user_query->get_results();
foreach($users as $user){
echo\'<option value="\'.$user->ID.\'">\'.$user->user_email.\'</option>\';
}
return $res;
}
我做错了什么?