Just like trash feature for posts, WordPress 2.9 also includes a trash feature for comments too. It works in a similar way to posts. In WordPress 2.9 you can trash and restore comments, by default the comments are stored in trash for 30 days, however you can always update this.
Trash Comments in WordPress 2.9
In WordPress 2.9, the delete functionality has been replaced by Trash, clicking on the Trash link will move the comment status to Trash, and store it for 30 days or as long as you have set it up to.
Undo Trash Comments in WordPress 2.9
Another interesting feature in WordPress 2.9 is the ability to quickly Undo your Trash action, similar to what you can see in Gmail.
Browsing Trash Comments in WordPress 2.9
To browse trashed comments, just click on the Trash link in the Edit comments page.
Restore Deleted Comments in WordPress 2.9
Restoring Trash Comments in WordPress 2.9 is pretty easy, just visit the Trash comments and click on the Restore link to restore it back. Bulk actions are also available for restore.
Disabling / Limiting Trash Comments in WordPress 2.9
Trash feature is an excellent addition to WordPress, however, if you want to disable the trash feature or limit the number of days deleted comments are stored in Trash, you can do it by adding a small constant.
This is similar to how you would limit post, you can read about it in our earlier post: Disabling or Limiting Trash feature for posts. One thing to note is that, both the posts and comments use the same constant, so you cannot disable it for one and expect it to be working for the other.
If you decide to disable trash feature, it will be disabled for both post and comments.