How To Limit or Disable Trash Feature in WordPress 2.9
Posted By Keith Dsouza On December 4, 2009 @ 8:44 pm In How To | No Comments
WordPress [1] 2.9 introduces a new feature which allows you to Trash a post instead of actually deleting it. If you use WordPress 2.9, you will see that the delete link has been replaced by Trash.

By Default WordPress 2.9 is set to retain the Trash posts for 30 days, unless you manually delete it. To curtail the number of days trash post is stored for, add this line to your wp-config.php file.
1: define('EMPTY_TRASH_DAYS', 7);
Doing this will limit the trash to only 7 days, change the number to limit to any other number of days you want.
If you do not want the trash feature, you can always disable it. However, you will need to add a line to your wp-config.php file.
1: define('EMPTY_TRASH_DAYS', 0);

Doing this will ensure that no posts are store in the trash. In addition to that, the Trash link will display Delete Permanentlyinstead.
Article printed from Techie Buzz: http://techie-buzz.com
URL to article: http://techie-buzz.com/how-to/disable-or-limit-trash-function-in-wordpress-29.html
URLs in this post:
[1] WordPress: http://techie-buzz.com/tag/wordpress
Click here to print.
Copyright © 2006-20011 Techie Buzz. All rights reserved.