Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

How to Automatically Empty Trash

All of you might know WordPress has a trash feature, just like Recycle bin in Windows PC, so whenever we delete something it goes into trash, if we want we can recover it later and if you don’t want to recover you can delete it permanently.

But mostly it happens that we delete some posts and don’t even remember to delete it permanently this makes database bigger in size, thus taking more time to process and making the site slow.

Just add the below lines of code in wp-config.php :

define('EMPTY_TRASH_DAYS', 7 ); // Empty trash after every 7 days

The above code will automatically empty trash every 7th day. thus cleaning up your database and making you website Optimized and faster.

Subscribe via Email

Share this:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • Email

Related

May 10, 2012 Ritesh Sanap WordPress Empty Trash, How To, Tricks, WordPress Tips, wp-config.php

Post navigation

Previous Previous post: How to specify the Auto save Interval
Next Next post: How to Redirect WordPress Feeds to FeedBurner

Currently Trending

  • Windows Vista CD key
  • How to download Specific parts of YouTube videos
  • ZooZooo - Vodafone Logos
  • How to Increase Dropbox upload speed
  • How to Change the Welcome/Login Screen in Windows XP ?
  • HORIZONTAL AND VERTICAL SPACING
  • How To Change Windows XP Shutdown Dialog Box
  • List Of All 255 Keyboard All Alt Key Codes
  • Free Online Angry Birds game
  • Hide or Show Label Count In Blogger

Random Posts

Add Social Bookmarking Icons After Every Post In Blogger Blog

April 29, 2010 By Ritesh Sanap 8 Comments

How to remove Previous and Next entries in thesis

May 21, 2011 By Ritesh Sanap Leave a Comment

How to Save Online Flash Games and Greetings from the Internet for Offline Play ?

February 27, 2009 By Ritesh Sanap Leave a Comment

I Lost My MotherBoard Driver CD/DVD ! What To Do ??

August 14, 2008 By Ritesh Sanap 1 Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2021 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.