Post Pic

WordPress hook: Disable posts auto saving

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!

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.

Related Posts

Related Posts

No related posts.

2 Responses

Oct 26 2012 05:31

Awesome!

Mar 06 2013 07:20

Is there a plugin for disabling autosave and post revision? I am using Studiopress Genesis child theme, the theme structure is different.

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required

WP Theme of the week

Sponsored Likebox