Increase Autosave Interval in WordPress

Purpose of the Snippet

Autosave is an useful feature in WordPress to save your content when your preparing to publish online. It saves the entire content on the editor every few minutes and save it as a separate backup on your database. However, this can be annoying and sometimes struck without allowing you to upload or publish content. If you are not doing something mission critical, setting the interval to longer time is preferred.

Template to Insert

Copy the below code snippet and paste in your config.php file.

Code Snippet

# Autosave Interval 10 Minutes #
define('AUTOSAVE_INTERVAL', 600); 

You have to indicate the time in seconds. In the above code example, we have used 10 minutes interval by mentioning 600 seconds. You can change to any preferred value that works for your need.

RELATED:  How to Disable and Limit WordPress Post Revisions?

Leave a Comment