[wp-hackers] Remove limit from WP_User_Search

Simon Blackbourn piemanek at gmail.com
Fri Jul 23 14:10:47 UTC 2010


I've added an admin page from where the site owner can export names and
email addresses of all users of a particular role, using WP_User_Search
class:

$user_search = new WP_User_Search( '', '', 'member' );
$results = $user_search->get_results();
[...do stuff...]

But I can't figure how to remove the limit of 50 users that this defaults to
- I need it to return all users. Can someone point me in the right
direction?

Cheers
Simon


More information about the wp-hackers mailing list