wp_update_term_count


wp_update_term_count ( $terms, $taxonomy, $do_deferred = false )

Parameters:
  • (int|array) $terms The term_taxonomy_id of the terms.
  • (string) $taxonomy The context of the term.
  • (bool) $do_deferred Whether to flush the deferred term counts too. Default false.
Returns:
  • (bool) If no terms will return false, and if successful will return true.
Defined at:

Description

Updates the amount of terms in taxonomy.

If there is a taxonomy callback applied, then it will be called for updating the count.

The default action is to count what the amount of terms have the relationship of term ID. Once that is done, then update the database.

Related Functions

wp_update_term_count_now, _update_post_term_count, wp_update_network_counts, wp_update_term, wp_update_comment_count

Top Google Results

User discussions

wpseek mobile