WordPress hook: Disable posts auto saving

by Jean-Baptiste Jung on July 31, 2009

To disable WordPress autosaving function, simply open your functions.php file and paste the following function:

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

That's all. Once you saved the file, WordPress will never autosave a post. To enable autosaving again, simply delete this code.

Also, remember that if you need help with your WordPress blog, I can help for a reasonable price. Just send me an email and i'll see what I can do for you.

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

WordPress hook: Disable posts auto saving