• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
MinutesGuide.com

MinutesGuide.com

It is Not Just About WordPress

  • Home
  • About
  • Blog
    • Blogger Talk
    • Email Marketing
    • Hosting Talk
    • Plugins
    • Themes
      • Extra & Divi
    • WPbeginner
      • Guide
      • Life Hacks
      • WP Fix
    • WP Security
    • WP SEO
    • WooCommerce
  • Services
  • Reference
  • Contact
  • Start Here
Home » Blog » WPbeginner » Guide » How to Disable WordPress Autos…

How to Disable WordPress Autosave?

Post on February 15, 2018 | Updated on November 29, 2020 by FaizAlias Leave a Comment

How to Disable WordPress Autosave? Do you know? Every 60 seconds your post automatically saved by the WordPress system in your database as post revisions. Actually, this is a useful feature in WordPress. When you lost your connection, or your computer shut down suddenly, you can restore your post back.

But, not all people like this feature for certain reasons. One of them is, all your autosave will be kept on your server, and it will not delete except you delete it. Sometimes, this autosave will be like trash on your server where you must delete for it.

Imagine if you write your post about for one hour. How many post revision on your server saved?

Do not worry. Actually, you can control it or eliminate it permanently.

Disable WordPress Autosave

There are three methods you can follow it.

Method #1 Modify function.php File

Step 1 Log into your cPanel.

Step 2 Navigate to your installation WordPress folder and paste the code below into your function.php.

add_action( ‘admin_init’, ‘disable_autosave’ );
function disable_autosave() {
wp_deregister_script( ‘autosave’ );
}

Method #2 Modify wp-config.php File

Step 1 Log into your cPanel.

Step 2 Navigate to your installation WordPress folder and paste the code below into your wp-config.php.

define(‘AUTOSAVE_INTERVAL’, 86400);

Method #3 Modify post.php File

Step 1 Log into your cPanel.

Step 2 Navigate to your installation WordPress folder.

Step 3 Open your wp-admin/post.php file and wp-admin/post-new.php files. Then, search the code below.

wp_enqueue_script(‘autosave’);

Then, change the code above with add “//” at the front. It looks something like this.

//wp_enqueue_script(‘autosave’);

Conclusion

In this tutorial, you have learned how to disable WordPress autosave while you post something. Please re-think if you want to disable it in your WordPress installation.

If you like this article, then please FOLLOW our Linkedin, Twitter, YouTube, Pinterest, and Facebook. Do not forget to check our services page to upgrade your WordPress. If you find this post has an issue with copyright, outdated, or in error, please contact us to fix it.

Related Article..

  • How to Add Google Analytics to WordPress (Two Easy Method)
  • How to Remove Underline On Text Link in Genesis Theme
  • This Block Has Encountered An Error And Cannot Be Previewed (Fixed!)
  • How to Add Google Search in a WordPress
  • WordPress Needs to Access Your Web Server

Filed Under: Guide, WPbeginner

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Follow Me

  • Facebook
  • GitHub
  • LinkedIn
  • Pinterest
  • Twitter
  • YouTube

Start With…

Start Blogging
eShop Guide
blank
WP Guide
blank
WP Security

Categories

blank

Footer

About MinutesGuide

Was founded in October 2017 by FaizAlias. The main goal of this site is to provide quality tips, tricks, hacks in easy way that you can learn it just in minutes.

Highlight Service

Ninja Tables Pro Installation And Setting
CSS Hero Plugin Installation And Setting
Divi Theme Installation & Settings
Build Complete eCommerce Site

Quicklink

Home
Services
Contact
Blog

Copyright © 2021 · Designed by SM Creative Studio | Hosted by Cloudways DMCA.com Protection Status

  • Privacy Policy
  • Terms of Use