Fires when a term count is calculated, before it is updated in the database.
$tt_idint$taxonomy_namestring$countintwp-includes/taxonomy.php:4249_update_post_term_count()wp-includes/taxonomy.php:4279_update_generic_term_count() * @since 6.9.0 * * @param int $tt_id Term taxonomy ID. * @param string $taxonomy_name Taxonomy slug. * @param int $count Term count. */ do_action( 'update_term_count', $tt_id, $taxonomy->name, $count ); /** This action is documented in wp-includes/taxonomy.php */ do_action( 'edit_term_taxonomy', $tt_id, $taxonomy->name, array() ); $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $tt_id ) ); /** This action is documented in wp-includes/taxonomy.php */Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.