update_post_term_count_statuses WordPress Filter Hook

The update_post_term_count_statuses hook is called after a post's status has been updated. This hook can be used to update the post's term count.

apply_filters( 'update_post_term_count_statuses', string[] $post_statuses, WP_Taxonomy $taxonomy ) #

Filters the post statuses for updating the term count.


Parameters

$post_statuses

(string[])List of post statuses to include in the count. Default is 'publish'.

$taxonomy

(WP_Taxonomy)Current taxonomy object.


Top ↑

Source

File: wp-includes/taxonomy.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More