Posted By

kevinbanet on 01/31/10


Tagged

wordpress


Versions (?)

Disable WordPress Auto-save and Post Revision Control


 / Published in: PHP
 

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

  1. define('WP_POST_REVISIONS', false);
  2.  
  3. function disable_autosave() {
  4. wp_deregister_script('autosave');
  5. }
  6.  
  7. add_action( 'wp_print_scripts', 'disable_autosave' );

Report this snippet  

You need to login to post a comment.