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.1

apply_filters('update_post_term_count_statuses') is found 1 times:

  • /wp-includes/taxonomy.php line 4159
    	 *
    	 * @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 ) {