Filters whether to short-circuit performing the post counts.
Description
When filtering, return an array of posts counts as strings, keyed by the user ID.
Parameters
$count
string[]|null- The post counts. Return a non-null value to short-circuit.
$users
int[]- Array of user IDs.
$post_type
string|string[]- Single post type or array of post types to check.
$public_only
bool- Whether to only return counts for public posts.
Source
$pre = apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only );
Changelog
Version | Description |
---|---|
6.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.