clean_term_cache хук-событие . WP 2.5.0
Fires once after each taxonomy's term cache has been cleaned.
Использование
add_action( 'clean_term_cache', 'action_function_name_5206', 10, 3 ); function action_function_name_5206( $ids, $taxonomy, $clean_taxonomy ){ // action... }
- $ids(массив)
- An array of term IDs.
- $taxonomy(строка)
- Taxonomy slug.
- $clean_taxonomy(true/false)
- Whether or not to clean taxonomy-wide caches
Список изменений
С версии 2.5.0 | Введена. |
С версии 4.5.0 | Added the $clean_taxonomy parameter. |
Где вызывается хук
clean_term_cache
wp-includes/taxonomy.php 3433
do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy );