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



update_post_term_count_statuses › WordPress过滤钩子

Since5.7.0
已弃用n/a
apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy )
参数: (2)
  • (string[]) $post_statuses List of post statuses to include in the count. Default is 'publish'.
    Required: Yes
  • (WP_Taxonomy) $taxonomy Current taxonomy object.
    Required: Yes
定义在:
文档:

Filters the post statuses for updating the term count.





源码

$post_statuses = esc_sql( apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy ) );