Filter hook 'update_post_term_count_statuses'

in WP Core File wp-includes/taxonomy.php at line 4158

Description

Filters the post statuses for updating the term count.

Occurrences

Filename Line Number
wp-includes/taxonomy.php 4158

Parameters

Type Name Description
string[] $post_statuses List of post statuses to include in the count. Default is 'publish'.
WP_Taxonomy $taxonomy Current taxonomy object.

PHP Doc

/**
	 * Filters the post statuses for updating the term count.
	 *
	 * @since 5.7.0
	 *
	 * @param string[]    $post_statuses List of post statuses to include in the count. Default is 'publish'.
	 * @param WP_Taxonomy $taxonomy      Current taxonomy object.
	 */