apply_filters( ‘pre_count_many_users_posts’, string[]|null $count, int[] $users, string|string[] $post_type, bool $public_only )

In this article

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

$countstring[]|null
The post counts. Return a non-null value to short-circuit.
$usersint[]
Array of user IDs.
$post_typestring|string[]
Single post type or array of post types to check.
$public_onlybool
Whether to only return counts for public posts.

Source

$pre = apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only );

Changelog

VersionDescription
6.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.