WordPress at Your Fingertips
filter is not described

update_post_term_count_statuses filter-hook . WP 5.7.0

Filters the post statuses for updating the term count.


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

	return $post_statuses;
List of post statuses to include in the count.
Default: 'publish'
Current taxonomy object.


Since 5.7.0 Introduced.

Where the hook is called

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.