Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WP_User_Query meta parameters for first name
$args = array(
'role' => 'Administrator',
'meta_query' => array(
'key' => 'first_name',
'value' => '',
'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
You can’t perform that action at this time.