update_post_term_count_statuses

update_post_term_count_statuses

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('update_post_term_count_statuses') is found 1 times:

  • /wp-includes/taxonomy.php line 4159
    4155
    4156
    4157
    4158
    4159
    4160
    4161
    4162
    4163
    4164
    4165
    *
     * @param string[]    $post_statuses List of post statuses to include in the count. Default is 'publish'.
     * @param WP_Taxonomy $taxonomy      Current taxonomy object.
     */
    $post_statuses = esc_sql( apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy ) );
     
    foreach ( (array) $terms as $term ) {
        $count = 0;
     
        // Attachments can be 'inherit' status, we need to base count off the parent's status if so.
        if ( $check_attachments ) {