WPDev.one
Core Function
View Source on Trac ↗

clean_term_cache()

clean_term_cache( mixed $ids, mixed $taxonomy = '', mixed $clean_taxonomy = true )

Removes all of the term IDs from the cache.

Parameters 3 required

Name / Type Description
(int

| int[]) $ids Single or array of term IDs.

Required
string

$taxonomy Optional. Taxonomy slug. Can be empty, in which case the taxonomies of the passed term IDs will be used. Default empty.

Required
bool

$clean_taxonomy Optional. Whether to clean taxonomy wide caches (true), or just individual term object caches (false). Default true.

Required

Return Value

(void)
No return value description available.

Function Information

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