Search

How Often Does WordPress Automatically Save a Draft?

WordPress has an autosave feature that automatically saves a draft of your post every 60 seconds, as you edit it.
WordPress Logo

WordPress autosave feature

The autosave feature in WordPress serves as a safety net, protecting your work in the event of unexpected issues. As you create or edit a post, WordPress automatically saves a draft of your work every 60 seconds. This means that if your internet connection drops, your browser crashes, or your computer loses power, you won’t lose all the changes you’ve made. When you go back to edit the post, WordPress will show you a notice about the autosave and give you the option to restore it. This feature is designed to save you time and prevent the frustration of losing your work.

Please note that only one autosave is stored at a time; newer autosaves overwrite older ones.

How to disable the autosave feature in WordPress

Disabling the autosave feature in WordPress can be done in two ways: using a plugin or adding code to your theme’s functions.php file.

Method 1: Using a Plugin

  1. Install and activate the “Disable Gutenberg Autosave” plugin.
  2. Open the WordPress Gutenberg block editor.
  3. Click the ‘Autosave Settings’ icon at the top right corner of the page/post.

Method 2: Adding Code to functions.php File

  1. Sign in to the WordPress backend using an administrator account.
  2. Place your mouse cursor on ‘Appearance’ among the options on the left pane, then click ‘Theme File Editor’.
  3. Select the functions.php file among the Theme Files.
  4. Paste the following code in that file:
add_action('admin_init', 'disable_autosave');
function disable_autosave() {
    wp_deregister_script('autosave');
}
  1. Click on ‘Update file’ button to disable WordPress autosave feature.

Please note that modifying your site’s code can have unintended side effects. Always backup your site before making changes to the code.

Post revisions

WordPress incorporates a handy functionality known as post revisions, designed to facilitate the process of undoing changes and reverting to earlier versions of posts and pages. As you work on each draft, WordPress automatically generates a temporary revision, referred to as auto-save, at intervals of 60 seconds.

SHARE THIS ARTICLE

Leave a Comment

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

Read More

Weekly Magazine

Get the best articles once a week directly to your inbox!