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.

18 Responses

Aug 01 2009 04:41

I like that feature a lot. And unlike most people, I actually like that feature that saves all your previous drafts, as I have restored things a time or two after little glitches. I just love WordPress in general, anyway — the mere menion of the name WordPress makes me smile and feel all fuzzy inside. I don’ t know how people ever get along with Blogger.

Aug 01 2009 09:29

I totally agree since I ‘ v just moved from blogger towards WP.
Quite a difference.
As a beginner I am searching now for useful plugins. So this WP autosave function might help me a lot.

Aug 02 2009 08:34

I personally like the auto save function, it has saved me a whole blog post in the past, when my computer crashed while writing.

Aug 05 2009 11:25

Hi, thanks for this tips. I personally enjoy auto save function but it trouble me a lot when my internet connection is slow.

Aug 06 2009 10:06

Yeah, I wouldn’t get rid of the auto save because of the reason Ann stated. If your browser suddenly crashed & you got rid of that feature AND didn’t save your post, you will lose the entire thing.

Aug 21 2009 04:16

i prefer not to diasble that post..
sometime my internet got disrupted..

Aug 21 2009 13:02

As a general rule of thumb, all posts of value are written to a text editor before being copied over to WordPress for posting. The Auto-Save & Post Revision features are the first two things I disable right off the bat when installing WordPress, unless for a customer.

Sep 21 2009 21:34

Nice tip. Yeah, auto-save and post revisions tend to get annoying after a while, particularly post revisions that just clogs your database. I personally disable both these feature, but it’s totally upto you, if you wanna keep these features.

Nov 07 2009 07:39

You can also use wp-config.php setting:
define(‘WP_POST_REVISIONS’, false );

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required