One of the nice features that the Ajax has brought with it, is surely the autosave. When we write a new article, a special javascript allows you to save, within a specified timeframe, the draft we have produced. For example we are writing and you lose connection, or for majeure force you must dedicate ourselves to something else, without this handy feature we will be with the “old” time-out page and we will have to rewrite everything from scratch. Despite its usefulness, however, there may have needs for which this function is counterproductive.
The developers of WordPress have a far-sighted thinking to specific functions of “changing the classification” of some PHP classes. So to disable autosaving you must add a specific function in the file functions.php present among the files of your theme.
1 2 3 4 | function disableAutoSave()(wp_deregister_script ('autosave');) add_action( 'wp_print_scripts', 'disableAutoSave'); |
Function wp_deregister precisely intercept the script and disable autosave. If we want to rehabilitate the function we need to delete the lines above.

