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
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
4.5.0 | Added the $clean_taxonomy parameter. |
2.5.0 | Introduced. |