Snippet: Disable WordPress From Auto-Saving Posts

Add following snippet to “functions.php”

Snippet

add_action( 'wp_print_scripts', 'disableAutoSave' );
function disableAutoSave(){
    wp_deregister_script('autosave');
}

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>