Change WordPress Post Autosave Settings

How to Change WordPress Post Autosave Settings

in WordPress Config
Google+ LinkedIn

WordPress has a very useful feature which will automatically save your current draft every 30 seconds, as you type and you will not even notice.

You can change the time interval settings on how often WordPress auto saves by adding a setting in the wp-config.php file. Let’s say you want to autosave drafts every 10 minutes. To do this, you need to add below settings to your wp-config.php file. Note that you need to add time in seconds and not minutes. Your post drafts will now be auto saved at every 600 seconds.

// autosave draft interval set to 10 Minutes
define( 'AUTOSAVE_INTERVAL', 600 );

Although it’s a very useful feature for a content writer but for some reason if you do not want auto saving of drafts, you can turn this feature off. You can easily disable this feature by increasing the autosave time interval to a very long time. For example a week long time interval practically force WordPress to never autosave drafts.

// autosave draft interval set to 1 week
define( 'AUTOSAVE_INTERVAL', 604800 );

Share the love

If you like this snippet, share it with others!

Leave a Reply

Your email address will not be published. Required fields are marked *