clean_page_cache
Fires immediately after the given page's cache is cleaned.
Usage
add_action( 'clean_page_cache', 'wp_kama_clean_page_cache_action' );
/**
* Function for `clean_page_cache` action-hook.
*
* @param int $post_id Post ID.
*
* @return void
*/
function wp_kama_clean_page_cache_action( $post_id ){
// action...
}
- $post_id(int)
- Post ID.
Changelog
| Since 2.5.0 | Introduced. |
Where the hook is called
clean_page_cache
wp-includes/post.php 7759
do_action( 'clean_page_cache', $post->ID );