WordPress.org

Ready to get started?Download WordPress

Forums

Whats the easiest way to disable autosave? (2 posts)

  1. TWD
    Member
    Posted 4 years ago #

    I wish there was a simple way to do it because i find the autosave more hassle than it's worth.

    Plugin anybody?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    define('AUTOSAVE_INTERVAL', 160 ); // seconds

    added to your wp-config.php file changes the duration between autosaves.... you could just make it a really long interval?

    or...I believe (I haven't tested this, I just had it saved in case...)

    <?php
    /*
    Plugin Name: Disable Autosave
    */
    function disable_autosave() {
    wp_deregister_script('autosave');
    }
    add_action( 'wp_print_scripts', 'disable_autosave' );
    ?>

    saved as a php file, and dropped into your plugins directory then activated will disable autosave

Topic Closed

This topic has been closed to new replies.

About this Topic