Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The simplest solution is to go into your active theme and add this code to your theme’s functions.php file (found in /wp-content/themes/[your-theme-name]/functions.php):
- /* Disable AutoSave */
- function disableAutoSave() {
- wp_deregister_script('autosave');
- }
- add_action( 'wp_print_scripts', 'disableAutoSave' );
- =============================
- Here is a similar tactic (from Mark / t31os), also for your theme’s functions.php file:
- /* Disable AutoSave, hacky-style */
- function hacky_autosave_disabler( $src, $handle ) {
- if( 'autosave' != $handle )
- return $src;
- return '';
- }
- add_filter( 'script_loader_src', 'hacky_autosave_disabler', 10, 2 );
- Mark says the above tactic “simply wipes out the src value for the autosave script, which in
- =======================
- http://www.plaxee.com/wordpress/how-to-disable-auto-draft
- Step 1. Editing /wp-includes/default-filters.php file.
- i. Open default-filters.php file.
- ii. Find the line item add_action( ‘pre_post_update’, ‘wp_save_post_revision’ );
- iii. Comment out this line item with a double slash in front as shown in the image below.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement