How to Automatically Empty Trash

2010-05-24 12:30:00, Internet

Best wordpress tips

Trash is a new functionality from WordPress 2.9. When an item (post, comment, etc) is deleted, it goes in Trash instead of being permanently removed. Here is a tip to tell your WordPress blog to autmatically empty trash every X days.

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.

> Trash is a new functionality from WordPress 2.9. When an item (post, comment, etc) is deleted, it goes in Trash instead of being permanently removed. Here is a tip to tell your WordPress blog to autmatically empty trash every X days.

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.


Read Full Story ...

More Funny Stuff


Write a comment







Funny Stuff

Mailing List

  • Your email adress:
  • By joining to our mailling list you will recieve funny stuff into your mailbox!
© 2004-2012 by SkinTech. How to Automatically Empty Trash : .: 19 users browsing JokeStation right now. (4)
Network sites: • The WallpapersMovieStationCelebStationSkinBaseBaseHeadmyWallpapersPhotoVillageIP Details