Specify days to empty trash

Trash is a new functionality in WordPress 2.9.
When an item (post, comment, etc) is deleted, it gets sent to Trash instead of being permanently removed.
Here is a tip to tell your WordPress blog to automatically empty trash every X days.

Open your wp-config.php file and paste the following code:

define(‘EMPTY_TRASH_DAYS’, 10 );

Change 10 to the required amount of days.

Leave a comment

You must be logged in to post a comment.