_pad_term_counts
- %1$s is private and should not be used in themes or plugins directly.
_pad_term_counts ( $terms, $taxonomy )
Access:Parameters:- (object[]|WP_Term[]) terms List of term objects (passed by reference).
- (string) taxonomy Term context.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
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.