trashed_post_comments хук-событие . WP 2.9.0
Fires after comments are sent to the Trash.
Использование
add_action( 'trashed_post_comments', 'action_function_name_7974', 10, 2 ); function action_function_name_7974( $post_id, $statuses ){ // action... }
- $post_id(число)
- Post ID.
- $statuses(массив)
- Array of comment statuses.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
trashed_post_comments
wp-includes/post.php 3400
do_action( 'trashed_post_comments', $post_id, $statuses );