How to change autosave intervals or completely turn them off

In WordPress 2.1, before revisions became a thing, there was an autosave option introduced. Auto save works just like it should – WordPress automatically saves your posts and pages every 60 seconds just in case something bad happens. You never know when your browser will get hiccups or your computer will freeze. If you write directly into text or visual editor, you don’t want to lose hours of work on something which could have been prevented.

Although auto save works like it should, maybe you would like to change auto save intervals and save your content more frequently or make your WordPress save content every 5 minutes or so. In the next few lines, we’re about to show you how to do that.

In addition, you can completely disable autosave option if you don’t use one.

Change auto save interval:

  1. Open wp-config.php
  2. Add this line of code at the end of the file where the last number represents number of seconds after which auto save is made. Default is 60 seconds:
define('AUTOSAVE_INTERVAL', 120 );

Disable autosave:

  1. Open functions.php file
  2. Copy and paste the following code:
function disable_autosave() {
Start Blog Book


This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

Leave a Reply

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