clean_page_cache
Fires immediately after the given page's cache is cleaned.
Использование
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.
Список изменений
С версии 2.5.0 | Введена. |
Где вызывается хук
clean_page_cache
wp-includes/post.php 7615
do_action( 'clean_page_cache', $post->ID );