Created
September 9, 2017 14:28
-
-
Save bahiirwa/2d4a121071aa9224485a20ab08f15e29 to your computer and use it in GitHub Desktop.
Wordpress Query Users based on meta_value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$args = array( | |
'meta_query' => array( | |
'relation' => 'AND', | |
array( | |
array( | |
'key' => 'mps_finaldate', | |
'value' => '', | |
'compare' => '!=' | |
), | |
array( | |
'key' => 'mps_finaldate', | |
'value' => null, | |
'compare' => '!=' | |
) | |
) | |
) | |
); | |
$user_query = new WP_User_Query( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment