count_many_users_posts


count_many_users_posts ( $users, $post_type = 'post', $public_only = false )

Parameters:
  • (array) $users Array of user IDs.
  • (string|array) $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:
  • (array) Amount of posts each user has written.
Defined at:

Description

Number of posts written by a list of users.

Related Functions

count_user_posts, count_users, wp_count_posts, get_usernumposts, get_all_user_settings

Top Google Results

User discussions

wpseek mobile