Hot answers tagged get-user-count
The WP_User_Query class There's the WP_User_Query for exactly that. This class is an extension for the cores base wpdb class. The counting will therefore be saved inside the global $wpdb; object and is easy accessible. global $wpdb; $author_search = new WP_User_Query( array( 'role' => 'author' ) ); $author_list = $author_search->get_results(); ...
Only top voted, non community-wiki answers of a minimum length are eligible