Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I wish to return a WP user list in my plugin where the email address matches The user list I am after is for all users.

Does anyone have a code snipit for that?


share|improve this question
Take a look at It does a lot with user lists and you could probably dig into the code to find some help. – Doug Jan 11 '12 at 16:17

1 Answer 1

The search parameter can take an email address and can also accept wildcards:

$wp_user_search = new WP_User_Query( array( 'search' => '*' ) );
$users = $wp_user_search->get_results();
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.