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

How To Automatically added FTP detail on WordPress

On some web server, we need to put username, password and server address when we need to enable automatically update our WordPress, plugin or themes. This is really bad if we must input this field each time updated. Now I … Read More

How To Delete All WordPress Spam Comments Using phpMyAdmin

I have website that attacker more than 2000 spam each days. And I am so unhappy with it. I know I haven't installed any Comment Preventing system.  The WordPress spam comment attack is pretty smart because it is definitely automated … Read More

How To Fix Empty Searches and Prevent Duplicate Content

For some reason, sometimes our loyal readers search something and forget put keyword query. This is badly and able to get duplicate content warning from Google. We have already know we can added extra code on header.php such as <link … Read More

How To Automatically Refuse Comment without Plugin

For many year Spam is the big enemy on internet, there are so many way to Automatically Refuse Comment, some tricks need installed some plugin such as Akismet, WP-Spamfree, Bad Behavior and many more, But I will show you how … Read More

How To Disable WordPress Post Revision

To save MySQL storage, some WordPress user will be happy using this method, this method is Disable WordPress Post Revision. Why we need disabled this featured? It' because WordPress created such as dummy data revision and this one make our … Read More

Automatically Create a Custom Field

WP Canyon did wonderful tricks, this tricks is about how to automatically create a custom field when a post is published. This wonderful method is added some code on your functions.php files on your current theme. The first time need … Read More

Does yahoo automatically or occasionaly empty the trash box

Best Answer: "Deleted messages are moved to the Trash folder temporarily, where they are subject to deletion at anytime." This is the message at the top of read more

Source: http://answers.yahoo.com/question/index?qid=20080804203108AAU7cJv

Can I set my Trash folder to automatically empty instantly or at

Can I set my Trash folder to automatically empty instantly or at any sooner interval than thirty days? read more

Source: http://www.google.com/support/forum/p/gmail/thread?tid=2f6f566219c7ba7d&hl=en

Anyway to "Automatically empty trash"?: Apple Support Communities

So like my subject title says, I am wondering if their is anyway to setup Snow Leopard so that it reserves no space for the files that are sent to the trash; and make read more

Source: https://discussions.apple.com/thread/2479264?start=0&tstart=0

Automatically Empty Trash in Mail: Apple Support Communities

Is there a way to setup mail so that it will empty my trash say once a week? I looked in automator, but I did not find an action to do this. If I forget to check my read more

Source: https://discussions.apple.com/thread/1819267?start=0&tstart=0

Automatically empty the trash when items are trashed - Mac OS X Hints

I recently had a friend who is in the midst of switching ask me if it's possible to have the Trash automatically emptied when you drag items to it. read more

Source: http://hints.macworld.com/article.php?story=20030804230855953


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>