clean_comment_cache
云策文档标注
概述
clean_comment_cache 是一个 WordPress Hook,在评论从对象缓存中移除后立即触发。它主要用于开发者监听评论缓存清理事件。
关键要点
- Hook 名称:clean_comment_cache
- 触发时机:评论从对象缓存中移除后立即执行
- 参数:$id(整数类型,表示评论 ID)
- 相关函数:clean_comment_cache() 用于从对象缓存中移除评论
- 引入版本:WordPress 4.5.0
原文内容
Fires immediately after a comment has been removed from the object cache.
Parameters
$idint-
Comment ID.
Source
do_action( 'clean_comment_cache', $id );
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |