Trash and Restore Comments in WordPress 2.9
By on December 6th, 2009

Just like trash feature for posts, 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

Trash Commens 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

Undo Deleted 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 .

Browsing Trash Comments in WordPress 2.9

Browse 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

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.

Tags: , ,
Author: Keith Dsouza Google Profile for Keith Dsouza
I am the editor-in-chief and owner of Techie Buzz. I love coding and have contributed to several open source projects in the past. You can know more about me and my projects by visiting my Personal Website. I am also a social networking enthusiast and can be found active on twitter, you can follow Keith on twitter @keithdsouza. You can click on my name to visit my Google+ profile.

Keith Dsouza has written and can be contacted at keith@techie-buzz.com.
 
Copyright 2006-2012 Techie Buzz. All Rights Reserved. Our content may not be reproduced on other websites. Content Delivery by MaxCDN