The recent release of WordPress 2.9 brought a great new feature: the trash. Now users have a way to recover deleted posts and comments. By default, WordPress empties the trash every 30 days.
If you’d like to change how often the trashed information is removed, simply open up wp-config.php and define the following constant:
define('EMPTY_TRASH_DAYS', 15 ); // 15 days
Just change 15 to the frequency in days that you want WordPress to empty the trash. It’s that simple!


Money Help
December 28, 200910:48 pmHowdy, Thanks for such a great blog, please keep posting for us to keep track on current events!! Thanks
Orchid Box Italia
December 30, 20093:04 pmThanks for the post – the trash is a valuable and much needed addition to WordPress and you're trick makes it very handy for my blog!
Andrew Keir
January 1, 20104:48 amThe buildup of drafts was hugely annoying in previous versions of WordPress, good to see we can make Trash different.
Paul
January 1, 20109:41 amThanks for all your hard work! keep it up in 2010, loving your blog!
Naturalpills
January 18, 20103:34 pmI use wp, and i love it!!
Joseph Condron
January 19, 201010:07 pmI still have yet to make the upgrade but I do like the trash feature it seems to be a much needed addition.
Auction
January 19, 20108:51 pmThe ideea. don't update your wp
Sam
January 27, 20106:29 pmNice feature, I think it's always good to have control and know exactly when the trash is emptied, just in case you need to recover something.
discount
February 1, 20107:30 amIt is a very useful content,i had bookmarded your post.Here is some information for cheap discount coupons.It is a fact that cigarette smoking is injurious to health but if you go with reputed brand like Marlboro then the harm is less as compared to harm which other cheap and harmful cigarettes can do. It is so because Marlboro’s quality standards are high and it uses the right nicotine content and menthol which gives the real pleasure of smoking. In addition with the help of discount coupons you can even buy them very cheap.
Crooze SEO
February 15, 20109:21 amHi from Crooze, Thanks for a very nice artcile, really enjoy your work! Be back for the next article! Cheers
Peter Franks
March 4, 201010:30 amWriting a blog should all be about fun, love, and expressing yourself! If you find a medium as wonderful as the web to express yourself on, then boo frits to you me laddy. Ta
Twitter Follower
March 7, 20103:57 pmJust great script , one of the biggest from all. i use WP since i started online business and i am very content!
Manhattan
March 9, 20108:04 pmThat's awesome, but I mark all spam comments as spam instead of deleting them, so I always have them around… and I never delete posts.
vitrier
March 15, 201010:10 amwp 2.9 is great, but some additionnal default options better ajusted would be better
Udegbunam Chukwudi
May 31, 20108:49 pmNice hack though I haven’t got a problem with emptying my trash immediately after moderating legit comments and spammy comments
Cameron
July 20, 201012:58 pmThis is really a great feature of 2.9. Actually I have not yet switch on to WP3, as most of the plugins I am using will not gonna work on version 3. I saw there are many improvements and the latest version is very lightweight.