A simple and very useful trick by way of WP Recipes that tells WordPress to automatically empty the trash:
Simply open your wp-config.php file (located at the root of your WOrdPress install) and paste the following code:
define('EMPTY_TRASH_DAYS', 10 );
The second parameter is when to empty trash, in days.
If you’re like me, you’re constantly forgetting to permanently delete trashed posts, comments and pages. This fix will not only take care of a piece of routine blog maintenance you’re likely to forget, it should help your site run faster.
Make WordPress Take Out The Trash
A simple and very useful trick by way of WP Recipes that tells WordPress to automatically empty the trash:
If you’re like me, you’re constantly forgetting to permanently delete trashed posts, comments and pages. This fix will not only take care of a piece of routine blog maintenance you’re likely to forget, it should help your site run faster.