Function: _update_post_term_count

_update_post_term_count( array $terms, object $taxonomy )

Will update term count based on object types of the current taxonomy.

Shortcut: uptc

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Private function for the default callback for post_tag and category taxonomies.


Name Type(s) Default Value Description
$terms array

List of Term taxonomy IDs.

$taxonomy object

Current taxonomy object of terms.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.