clean_term_cache

SummerySummery

Will remove all of the term ids from the cache.

Syntax

clean_term_cache( int|int[] $ids, string $taxonomy = '', bool $clean_taxonomy = true )

ParametersParameters

$ids

(int|int[]) (Required) Single or array of term IDs.

$taxonomy

(string) (Optional) Taxonomy slug. Can be empty, in which case the taxonomies of the passed term IDs will be used.

Default value: ''

$clean_taxonomy

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

Default value: true

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.3.0 Introduced.
Scroll to Top