Created
October 22, 2014 17:20
-
-
Save surefirewebserv/7733f32b92be786d168b to your computer and use it in GitHub Desktop.
Disable Auto Save WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Don't copy the PHP tag | |
/** | |
* Dequeue the Auto Save script in the admin. | |
* | |
* Hooked to the admin_enqueue_scripts action, with a late priority (100), | |
* so that it is after the script was enqueued. | |
*/ | |
function sfws_dequeue_script() { | |
wp_dequeue_script('autosave'); | |
} | |
add_action( 'admin_enqueue_scripts', 'sfws_dequeue_script', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment