clean_comment_cache
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
wp-includes/comment.php 3422
do_action( 'clean_comment_cache', $id );