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.7.1

do_action('clean_post_cache') is found 1 times:

  • /wp-includes/post.php line 7603
    	 *
    	 * @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: