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:

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.

This entry was posted in WordPress Tips & Tricks and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>