Wordpress Snippet: Empty Trash Automatically | Tutorial Freak – Online Tutorials

WordPress Snippet: Empty Trash Automatically

This tiny piece of code works wonders! It automatically empties your WordPress Site’s Trash Bin.

Add the below code to your wp-config.php file, remember to set the number of days according to your needs. This also helps in reducing the size of your database.

define('EMPTY_TRASH_DAYS', 5 );

Author, Blogger, SEO Expert, Working Professional and a Student! I play so many roles in life and love what i do. I enjoy each moment of my life. Do follow us on Facebook

Sagar – who has written posts on Tutorial Freak – Online Tutorials.


Help keep us alive & kicking, we need coffee 24/7, please donate, thanks!
Embed

Leave a Reply

      
      
      
      
      
      
      
      
             
Save Now! $1.99 .COM at GoDaddy!
             
      
  • Adobe Lightroom for iPad???