clean_post_cache

clean_post_cache

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.6.2

do_action('clean_post_cache') is found 1 times:

  • /wp-includes/post.php line 7434
    	 *
    	 * @param int     $post_id Post ID.
    	 * @param WP_Post $post    Post object.
    	 */
    	do_action( 'clean_post_cache', $post->ID, $post );
    
    	if ( 'page' === $post->post_type ) {
    		wp_cache_delete( 'all_page_ids', 'posts' );
    
    		/**
    		 * Fires immediately after the given page's cache is cleaned.
    

See this hook used in plugins: