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:

Description

Gets the 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