WordPress at a glance
filter is not described

update_post_term_count_statuses filter-hook . WP 5.7.0

Filters the post statuses for updating the term count.

Usage

add_filter( 'update_post_term_count_statuses', 'filter_function_name_9013', 10, 2 );
function filter_function_name_9013( $post_statuses, $taxonomy ){
	// filter...

	return $post_statuses;
}
$post_statuses(string[])
List of post statuses to include in the count.
Default: 'publish'
$taxonomy(WP_Taxonomy)
Current taxonomy object.

Changelog

Since 5.7.0 Introduced.

Where the hook is called

_update_post_term_count()
update_post_term_count_statuses
wp-includes/taxonomy.php 3911
$post_statuses = esc_sql( apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy ) );

Where in WP core the hook is used WordPress

Usage not found.