trash_post_comments WordPress Action Hook
The trash_post_comments hook is called when a comment is moved to the trash. This hook gives you a chance to cleanup any data related to the comment that is being deleted.
do_action( 'trash_post_comments', int $post_id ) #
Fires before comments are sent to the Trash.
Parameters
- $post_id
(int)Post ID.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |