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