On this page
do_action( 'trashed_comment', string $comment_id, WP_Comment $comment )
Fires immediately after a comment is sent to Trash.
Parameters
$comment_idstring-
The comment ID as a numeric string.
$commentWP_Comment-
The trashed comment.
Source
File: wp-includes/comment.php. View all references
do_action( 'trashed_comment', $comment->comment_ID, $comment );
Related
Used By
| Used By | Description |
|---|---|
| wp_trash_comment() wp-includes/comment.php | Moves a comment to the Trash |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/trashed_comment