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

do_action('clean_post_cache') is found 1 times:

  • /wp-includes/post.php line 7603
    7599
    7600
    7601
    7602
    7603
    7604
    7605
    7606
    7607
    7608
    7609
    *
     * @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: