wp_trash_comment
wp_trash_comment ( $comment_id )
Parameters:- (int|WP_Comment) comment_id Comment ID or WP_Comment object.
Returns:- (bool) True on success, false on failure.
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Moves a comment to the TrashIf Trash is disabled, comment is permanently deleted.