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



update_post_term_count_statuses › WordPress Filter Hooks

Since5.7.0
Deprecatedn/a
apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy )
Parameters: (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
Defined at:
Codex:

Filters the post statuses for updating the term count.





Source

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