clean_post_cache хук-событиеWP 2.5.0

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

Использование

add_action( 'clean_post_cache', 'wp_kama_clean_post_cache_action', 10, 2 );

/**
 * Function for `clean_post_cache` action-hook.
 * 
 * @param int     $post_id Post ID.
 * @param WP_Post $post    Post object.
 *
 * @return void
 */
function wp_kama_clean_post_cache_action( $post_id, $post ){

	// action...
}
$post_id(int)
Post ID.
$post(WP_Post)
Post object.

Список изменений

С версии 2.5.0 Введена.

Где вызывается хук

clean_post_cache()
clean_post_cache
wp-includes/post.php 7366
do_action( 'clean_post_cache', $post->ID, $post );

Где используется хук в WordPress

Использование не найдено.