QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads WordPress Change Empty Trash Interval

WordPress Change Empty Trash Interval

WordPress empty’s the trash once in every 30 days automatically. But you can change this interval according to your wish. Place the below code in wp-config.php file to change the trash empty interval

define('EMPTY_TRASH_DAYS', 10); //Here we are automatically emptying the trash every 20 days.

You can also instruct WordPress not to empty the trash automatically by place value 0 in above code.

Feb 4, 2015Narayan Prusty
Change WordPress Automatic Save IntervalRetrieve MySQL Queries Programatically in WordPress
Comments: 2
  1. Hamad
    5 years ago

    thanks mate… also you can stop the auto deletion trash too:

    https://wordpress.org/plugins/disable-empty-trash-littlebizzy/

    ReplyCancel
  2. noname
    6 years ago

    Is this for 10 days or 20 days? Code says 10, but comments say 20.

    ReplyCancel

Leave a Reply Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

8 years ago 2 Comments WordPress
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Change WordPress Automatic Save Interval
  • WordPress Enable Automatic Theme Updates
  • WordPress Enable Automatic Plugin Updates
  • AJAX In WordPress
  • WordPress Enable or Disable Auto Update
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license