Disable auto-saving

Wpsnipp – WordPress have a very useful function that autosaves your posts while you’re typing them in the dashboard. Though, if for some reason you’d like to disable this function, it is very easy to do. Just read on!Adding this PHP code to your functions.php of your wordpress theme will stop wordpress from auto saving your posts.

 

 

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

Be Sociable, Share!

Leave a comment