clean_post_cache WordPress Action Hook
The clean_post_cache hook is triggered when a post is updated. It is used to clear the cache for a given post so that the changes can be seen immediately. This hook is useful for plugins that need to be notified when a post is updated.
do_action( 'clean_post_cache', int $post_id , WP_Post $post ) #
Fires immediately after the given post’s cache is cleaned.
Parameters
- $post_id
(int)Post ID.
- $post
(WP_Post)Post object.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |