Return to Snippet

Revision: 23135
at January 31, 2010 02:15 by kevinbanet


Initial Code
define('WP_POST_REVISIONS', false);

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

add_action( 'wp_print_scripts', 'disable_autosave' );

Initial URL

                                

Initial Description
Add the following code in theme's functions.php to disable auto-save and post revision completely.

Initial Title
Disable WordPress Auto-save and Post Revision Control

Initial Tags
wordpress

Initial Language
PHP