On this page
apply_filters( 'update_post_term_count_statuses', string[] $post_statuses, WP_Taxonomy $taxonomy )
Filters the post statuses for updating the term count.
Parameters
$post_statusesstring[]-
List of post statuses to include in the count. Default is
'publish'. $taxonomyWP_Taxonomy-
Current taxonomy object.
Source
File: wp-includes/taxonomy.php. View all references
$post_statuses = esc_sql( apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy ) );
Related
Used By
| Used By | Description |
|---|---|
| _update_post_term_count() wp-includes/taxonomy.php | Updates term count based on object types of the current taxonomy. |
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/update_post_term_count_statuses