How to Disable WordPress AutoSave Function

Everyone should know wordpress has AutoSave function, some people really don’t like it, including me because it doesn’t help me too much. To disable AutoSave function of wordpress, simply copy and paste the following code to the function.php file. In case you want to enable again, you can just delete the code.

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

Leave a Reply