Created
November 9, 2016 01:53
-
-
Save wakasann/331e5307ee8b8ffd1f2a4ea981ffa906 to your computer and use it in GitHub Desktop.
disable wordpress autosave
This file contains 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
/** | |
* @link http://wordpress.stackexchange.com/questions/5584/possible-to-turn-off-autosave-for-single-custom-post-type | |
*/ | |
add_action( 'admin_enqueue_scripts', 'ezapp_module_enqueue_scripts' ); | |
function ezapp_module_enqueue_scripts() { | |
if ( 'ezapp_module' == get_post_type() ) | |
wp_dequeue_script( 'autosave' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment