fbpx

How to disable Autosave feature in Any WordPress Website?

disable Autosave feature in WordPress and Elementor

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.

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.

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. 

Posted in Tutorials
Use BFLIFETIME2019 Coupon Code & Get Master Addons Pro for Lifetime only $29 !!!
Pricing
close-image