clean_term_cache
do_action( ‘clean_term_cache’, array $ids , string $taxonomy , bool $clean_taxonomy )
动作钩子::在清理每个分类法的术语缓存后激发一次。
Action Hook: Fires once after each taxonomy’s term cache has been cleaned.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$ids | (array) | 一组术语ID。 |
$taxonomy | (string) | 分类蛞蝓。 |
$clean_taxonomy | (bool) | 是否清理分类范围内的缓存 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/taxonomy.php:3279 | 1 | 0 |
clean_term_cache 为WP2原创文章,链接:https://www.wp2.cn/hook/clean_term_cache/