apply_filters( ‘update_post_term_count_statuses’, string[] $post_statuses, WP_Taxonomy $taxonomy )

In this article

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

$post_statuses = esc_sql( apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy ) );

Changelog

VersionDescription
5.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.