How to disable WordPress AutoSave feature


By default, WP automatically saves draft of your post, page or a custom post type every 60 seconds. However, there are situations where we may want to disable this feature. By editing the functions.php file we can achieve this goal. Refer to the solution section for more information.


  • How to disable WordPress AutoSave?
  • WordPress disable autosave feature


  • WordPress


If you prefer to disable autosave feature, refer to the steps below.

  • Login to your WP admin page.
  • Click on Appearance and then select Theme Editor
  • On right side Panel, in Theme File window, chose functions.php file from Theme Functions section.
  • In the last line of functions.php file, add the following code.
add_action( 'admin_init', 'disable_autosave' );
function disable_autosave() {
wp_deregister_script( 'autosave' );

  • Then click the update file button to save changes.

  • You can also directly make changes to the functions.php file via FTP or manually editing the file on the server itself.

  • If you don’t want to add the above code to the functions.php file, we can increase the WP AutoSave parameter to 2 or 5 days in wp-settings.php file and that will virtually disable this feature because nobody has time to keep a page open for 2-5 days. Refer to the following article for more information.

define( 'AUTOSAVE_INTERVAL', 432000 );

You May Also Like


About the Author: TekFik

TekFik is a technical blogging site helps techies and engineers to solve their day to day issues and also allows everyone to share knowledge and feedback. Please feel free to contact us at if there is anything.

Leave a Reply

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