Disable the AutoSave Feature in WordPress

The autosave function in WordPress in useful in some cases. I prefer to turn it off though.

To turn it off, open the function.php file that is in your theme directory and add the following code:

<?php
function disableAutoSave(){
    wp_deregister_script('autosave');
}
add_action( 'wp_print_scripts', 'disableAutoSave' );</code>
?>