Hi all,
I do not get this working with a user query. This is because of the bug with% I can not solve it with a posts_where because it only works on the normal query and not for a WP_User_Query.
Can anyone help me pleace
$args = array(
‘role__in’ => [‘student’, ‘student_in_opleiding’],
‘meta_query’ =>
array(
//’relation’ => ‘AND’,
array(
‘key’ => ‘diploma_mbk_%_diplomacode_mbk’,
‘compare’ => ‘=’,
‘value’ => ‘1’,
)
)
);
//print_r($args);
$studentenData = new WP_User_Query($args);