clean_term_cache WordPress Action Hook

The clean_term_cache hook is called when a term's cache is cleaned. This hook is used to clear the cache for a specific term. It is called when the term's cache is cleaned, either by WordPress itself or by a plugin.

do_action( 'clean_term_cache', array $ids, string $taxonomy, bool $clean_taxonomy ) #

Fires once after each taxonomy’s term cache has been cleaned.


Parameters

$ids

(array)An array of term IDs.

$taxonomy

(string)Taxonomy slug.

$clean_taxonomy

(bool)Whether or not to clean taxonomy-wide caches


Top ↑

Source

File: wp-includes/taxonomy.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0Added the $clean_taxonomy parameter.
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More