I am trying to get all users that meta value is empty
so i tried many variations and cant get the list of all user that birthday field is empty (not set).
$user_query->query_vars['meta_key'] = 'birthday';
$user_query->query_vars['meta_value'] = '';
//or
$user_query->query_vars['meta_value'] = Null;
$user_query->query_vars['meta_compare'] = '=';
birthday
meta_key
with an emptymeta_value
in thewp_postmeta
table? Or you want to fetch only those IDs that don't have thatmeta_key
/meta_value
at all set in thewp_postmeta
table? – webtoure Jul 5 '15 at 14:01