Automatically empty Trash


Sponsored Links




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.

Automatically empty Trash - Candice Swanepoel

Automatically empty Trash - Candice Swanepoel

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.

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net


2 Responses to Automatically empty Trash

  1. Needs to be one for

    define(‘EMPTY_SPAM_DAYS’, 10 );

    Just sayin

  2. Pingback: WordPress for Android | WordPress News Wire

Leave a Reply

Your email address will not be published. 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>