wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_count_many_users_posts › WordPress过滤钩子

Since6.8.0
已弃用n/a
› apply_filters( 'pre_count_many_users_posts', null, $users, $post_type, $public_only )
参数: (4)
  • () count The post counts. Return a non-null value to short-circuit.
    Required: Yes
  • () users Array of user IDs.
    Required: Yes
  • () post_type Single post type or array of post types to check.
    Required: Yes
  • () public_only Whether to only return counts for public posts.
    Required: Yes
定义在:
文档:

Filters whether to short-circuit performing the post counts.

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




源码

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