_pad_term_counts


_pad_term_counts ( $terms, $taxonomy )

Access:
  • private
Parameters:
  • (object[]|WP_Term[]) terms List of term objects (passed by reference).
  • (string) taxonomy Term context.
Defined at:

Description

Adds count of children to parent count.Recalculates term counts by including items from child terms. Assumes all relevant children are already in the $terms argument.

Related Functions

wp_update_term_count, wp_defer_term_counting, _update_generic_term_count, _update_post_term_count, wp_update_term_count_now

Top Google Results

User discussions

wpseek mobile