clean_comment_cache хук-событиеWP 4.5.0

Fires immediately after a comment has been removed from the object cache.

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

add_action( 'clean_comment_cache', 'wp_kama_clean_comment_cache_action' );

/**
 * Function for `clean_comment_cache` action-hook.
 * 
 * @param int $id Comment ID.
 *
 * @return void
 */
function wp_kama_clean_comment_cache_action( $id ){

	// action...
}
$id(int)
Comment ID.

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

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

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

clean_comment_cache()
clean_comment_cache
wp-includes/comment.php 3287
do_action( 'clean_comment_cache', $id );

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

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