clean_comment_cache хук-событие . WP 4.5.0
Fires immediately after a comment has been removed from the object cache.
Использование
add_action( 'clean_comment_cache', 'action_function_name_5119' ); function action_function_name_5119( $id ){ // action... }
- $id(число)
- Comment ID.
Список изменений
С версии 4.5.0 | Введена. |
Где вызывается хук
clean_comment_cache
wp-includes/comment.php 3206
do_action( 'clean_comment_cache', $id );