W3cubDocs

/WordPress

do_action( ‘clean_post_cache’, int $post_id, WP_Post $post )

Fires immediately after the given post’s cache is cleaned.

Parameters

$post_idint
Post ID.
$postWP_Post
Post object.

Source

do_action( 'clean_post_cache', $post->ID, $post );

Changelog

Version Description
2.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/clean_post_cache