Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WP_User_Query meta parameters for first name
<?php
$args = array(
'role' => 'Administrator',
'meta_query' => array(
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.