Sort users in admin screen by meta value whether it exists or not
it only selects the users with the meta value and ignores those without it That’s because of this part: $query->set( ‘meta_key’, ‘festival_friend’ );, which adds an extra clause to the meta query clauses, i.e. the meta_query is basically appended with a array( ‘key’ => ‘festival_friend’ ) (yes, an array with just a key item). Try … Read more