这是我的查询...我希望将此查询缩小到一个特定角色的用户(“meta_key ='wp_capabilities'和meta_value ='employee'”)...如何添加该附加条件到这个字符串?
$get_users = "SELECT * FROM $wpdb->users
WHERE ID = ANY (
SELECT user_id FROM $wpdb->usermeta
WHERE meta_key = '$meta_key'
AND meta_value LIKE '%$search%'
) ORDER BY user_nicename ASC LIMIT 10000";
提前致谢...