apply_filters( 'update_post_term_count_statuses', string[] $post_statuses, WP_Taxonomy $taxonomy )
Filters the post statuses for updating the term count.
Parameters
- $post_statuses
-
(string[]) List of post statuses to include in the count. Default is 'publish'.
- $taxonomy
-
(WP_Taxonomy) Current taxonomy object.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
5.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/update_post_term_count_statuses