clean_term_cache

动作钩子


do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy )
参数
  • (array)
    $ids
    An array of term IDs.
    Required:
  • (string)
    $taxonomy
    Taxonomy slug.
    Required:
  • (bool)
    $clean_taxonomy
    Whether or not to clean taxonomy-wide caches
    Required:
定义位置
  • wp-includes/taxonomy.php
    , line 3621
引入
4.5.0
弃用

在每个分类法的术语缓存被清理后,触发一次。

do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy );