HomeWP TweaksHow to modify or disable Autosave in WordPress

How to modify or disable Autosave in WordPress

AutoSave is one of the most useful features of WordPress. It protects you from losing content, which can happen, for example, when you suddenly go off the internet or shut down your computer. By default, WordPress automatically saves content every 60 seconds.

Autosave Gutenberg also supports autosave, but it happens in the background and does not display information about it. The content is also protected when trying to leave the page when the changes are not published or updated yet.

Warning When trying to leave the page when you load a page or post where an unpublished automatic update is available, WordPress displays information about the most recent version available at the top of the screen. However, if for some reason you want to change the save interval or disable the feature completely, it works. Tip: If you want to downgrade, you can use the review.

How to change the AutoSave interval

If you want to reduce or increase the interval to automatically save content, you need to edit the wp-config.php file, which can be found in the main WordPress folder. The code above: required_once (ABSPATH. & ; wp-settings.php); Otherwise, it will have no effect.

The number 120 in our example indicates the time interval for saving in seconds. Up to 120 seconds with us. You can customize the number to suit your needs.

How to disable autosave

You can disable automatic saving of content in WordPress in two ways: Edit wp-config.php in the wp-config.php file, located in the main folder in WordPress, Insert: Definition ( AUTOSAVE_INTERVAL); By modifying the jobs.php template, the best way to disable autosave is to insert the snippet below in the jobs.php file in template.

Add_action (& # 39; admin_init & # 39 ;, & # 39; disable_autosave & # 39;); autosave & # 39;);} The code records the script that provides autosave.

RELATED ARTICLES

8 COMMENTS

  1. This post presents clear idea for the new users of blogging, that in fact how to do running a blog.

  2. Greate pieces. Keep posting such kind of info on your site.
    Im really impressed by it.
    Hey there, You have performed an incredible job.
    I’ll definitely digg it and personally recommend to my
    friends. I’m sure they will be benefited from this website.

  3. Neat blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple tweeks would really
    make my blog stand out. Please let me know where you got your theme.
    Cheers

  4. This is the perfect site for anyone who really wants
    to find out about this topic. You realize so much its almost
    tough to argue with you (not that I really would want to…HaHa).

    You certainly put a fresh spin on a subject which has
    been discussed for a long time. Excellent stuff, just great!

Comments are closed.