Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Add count of children to parent count.

Syntax Syntax

_pad_term_counts( array $terms, string $taxonomy )

Description Description

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

Parameters Parameters


(array) (Required) List of term objects (passed by reference).


(string) (Required) Term context.

Source Source

File: wp-includes/taxonomy.php



Changelog Changelog

Version Description
2.3.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.