trash_post_comments action-hook . WP 2.9.0
Fires before comments are sent to the Trash.
Usage
add_action( 'trash_post_comments', 'action_function_name_3005' ); function action_function_name_3005( $post_id ){ // action... }
- $post_id(int)
- Post ID.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
trash_post_comments
wp-includes/post.php 3372
do_action( 'trash_post_comments', $post_id );