How to disable Autosave feature in Any WordPress Website?

Autosave bother some users who prefer testing blog post or page style before publishing it. Within this blog post, you will learn how to disable autosave feature in WordPress website. You can apply the same method if you are using WordPress page builder plugin like Elementor, Visual Composer, Kingcomposer, etc. Let’s dive into the formula and disable the autosave function in WordPress website. Also, it’s necessary to keep an optimized database. 

There are two ways to disable WordPress autosave function.

  1. Editing WP-config.php file
  2. Editing Theme function.php file

I prefer the first wp-config.php file editing method. Let me explain why I prefer this instead of editing function.php file.

Function.php file related to your Theme file. That means when you will change your Theme, the autosave system will be back again. But changing the WP-config.php file is a safe and permanent solution though you change your Theme.

Before jumping into the step make sure you have the Cpanel or FTP credentials of your Website. If you don’t have access or can’t remember now then install File Manager plugin from WordPress plugin directory.

Here is a video guideline for you. I have explained in details regarding the autosave system in the video. If the text guideline is not enough for you then you can check the video too. 

Let’s take a look at the code snippet and steps.

Using WP-config.php file

Login to your Cpanel or FTP. In case if you don’t have the Cpanel or FTP access then browse file using file manager plugin. Search for the wp-config.php file in the root directory. Now edit the file. Then copy the following code and paste it in your WP-config.php file.

define('AUTOSAVE_INTERVAL', 86400);

Explanation about the Code Snippet – The unit of 86400 number is second. It means your post will do an autosave after 86400 seconds. I believe you will not edit or customize a post in your entire day without updating it.

Disable Autosave feature In WordPress

Using Function.php file

After login to Cpanel or FTP or browsing file using file manager plugin, navigate to WP-Content>Themes> Your Active Theme. Search for the function.php file. Edit it and place the following code. Make sure to paste the code properly inside the function.php file.

add_action( 'admin_init', 'disable_autosave' );
function disable_autosave() {
wp_deregister_script( 'autosave' );

I prefer to place the code at the end of function.php file. Take a look at the following screenshot from one of my website.

Disable Autosave using Theme Function File

I hope you got a clear idea on how disable Autosave system work in WordPress and the best way to disable autosave feature in WordPress. Feel free to message us via live chat or contact us, if you face any problems. 

Your Elementor Projects Deserve the Best

Get Master Addons Now

© 2021 - Master Addons| All rights reserved

Master Addons Demos


Animated Headlines
Dual Heading
Gradient Headline


Image Hover Effects
Image Hotspot
Filterable Image Gallery
Image Comparison
Gallery Slider
Advanced Image


Advanced Accordion
Toggle Content
Team Member
Team Slider
Business Hours
Pricing Table
Restrict Content
Dynamic Table

Special Elements

Call to Action
Progress Bar
Progress Bars
Creative Button
Creative Links
News Ticker
Table of Contents
Current Time
Domain Search
Nav Menu
Counter Up
Countdown Timer


Animated Gradient BG
Reading Progress Bar
Background Slider
Custom CSS
Custom JS
Container Extras
Mega Menu
Entrance Animation
Display Conditions
Dynamic Tags
Floating Effects
Custom Breakpoints
Post/Page Duplicator
Wrapper Link

Contact Form

Contact Form 7
Ninja Form
WP Forms
Gravity Forms
Caldera Forms