Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

count_many_users_posts()

3 tags 1 category

count_many_users_posts() — Gets the number of posts written by a list of users.

Inputs: $users (int[]): Array of user IDs. $post_type (string|string[]): Optional. Single post type or array of post types to check. Defaults to ‘post’. $public_only (bool): Optional. Only return counts for public posts. Defaults to false.

Returns array Amount of posts each user has written, as strings, keyed by user ID.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…