我正在尝试根据用户的元数据创建自定义用户查询。我创建了以下查询。
$users = new WP_User_Query(
array(
\'search\' => \'*\' . $search_name . \'*\',
\'meta_query\' => array(
\'relation\' => \'AND\',
array(
\'key\' => \'Status\',
\'value\' => $search_status,
\'compare\' => \'LIKE\'
),
array(
\'key\' => \'Operation\',
\'value\' => $search_operation,
\'compare\' => \'LIKE\'
),
array(
\'key\' => \'visible_to_directory\',
\'value\' => \'1\',
\'compare\' => \'=\'
)
)
)
);
当我有两个自定义的元值时,它工作得很好。一旦我添加了更多,它似乎就不起作用了。WP\\u User\\u查询类是否不支持此操作?