clean_post_cache
do_action( ‘clean_post_cache’, int $post_id , WP_Post $post )
动作钩子:在清除给定post的缓存后立即激发。
Action Hook: Fires immediately after the given post’s cache is cleaned.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$post_id | (int) | 邮政编码。 |
$post | (WP_Post) | Post对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-includes/post.php:6618 | 1 | 0 |
clean_post_cache 为WP2原创文章,链接:https://www.wp2.cn/hook/clean_post_cache/