WPDev.one
Core Function
View Source on Trac ↗

wp_update_term_count()

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

Updates the amount of terms in taxonomy.

Parameters 2 required

Name / Type Description
(int

| array) $terms The term_taxonomy_id of the terms.

Required
$taxonomy
string

The context of the term.

Required
$do_deferred
bool

Whether to flush the deferred term counts too. Default false.

Return Value

(bool)
If no terms will return false, and if successful will return true.

Function Information

Since Version
2.3.0
Source File
wp-includes/taxonomy.php
Advertisement