wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_count_many_users_posts › WordPress Filter Hooks

Since6.8.0
Deprecatedn/a
apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only )
Parameters: (4)
  • (string[]|null) $count The post counts. Return a non-null value to short-circuit.
    Required: Yes
  • (int[]) $users Array of user IDs.
    Required: Yes
  • (string|string[]) $post_type Single post type or array of post types to check.
    Required: Yes
  • (bool) $public_only Whether to only return counts for public posts.
    Required: Yes
Defined at:
Codex:

Filters whether to short-circuit performing the post counts.

When filtering, return an array of posts counts as strings, keyed by the user ID.





Source

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