1
OCT 09

Disable the WP autosave or revision feature.

These code snippets allows you to disable the autosave or revision function which are turned on by default in WP.

function disable_autosave() {
 wp_deregister_script('autosave');
}

add_action( 'wp_print_scripts', 'disable_autosave' );

To disable the revision feature you should add this line somewhere in your wp-config.php:

define('WP_POST_REVISIONS', false);

download plugin

2 Comments to “Disable the WP autosave or revision feature.”

  1. Polprav says:

    Hello from Russia!
    Can I quote a post in your blog with the link to you?

  2. Andrew says:

    Hello Polprav! Sure you can quote a posts in this blog.

Leave a comment


This entry was posted by and on Thursday, October 1st, 2009 at 00:10 and is filed under Snippets, WordPress.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.