count_many_users_posts
count_many_users_posts ( $users, $post_type = 'post', $public_only = false )
Parameters:- (int[]) users Array of user IDs.
- (string|string[]) post_type Optional. Single post type or array of post types to check. Defaults to 'post'.
- (bool) public_only Optional. Only return counts for public posts. Defaults to false.
Returns:- (string[]) Amount of posts each user has written, as strings, keyed by user ID.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Gets the number of posts written by a list of users.