Today WordPress Tips is How To Automatically empty Trash in our WordPress. Like we all know, WordPress 2.9 introducing Trash system. This system is better handled for accidentals deleted some our content. Example we deleted our post, but for some reason we need to bring it back.
This also happen on comment and page, after we choose sent the content into trash, this content will not visible anymore. The Next question is, if we deleted to many content, the trash will be a lot of data. How to Automatically unneeded data? Follow this step by WP Recipes.
Open your wp-config.php and added this line of code
define('EMPTY_TRASH_DAYS', 10 );
And done, your Trash will be automatically clean up. Please note, on this example there are 10 number. This number is Days, that I mean the data more than 10 days will be deleted.




Needs to be one for
define(‘EMPTY_SPAM_DAYS’, 10 );
Just sayin
Pingback: WordPress for Android | WordPress News Wire