Created
March 30, 2015 18:47
-
-
Save mikeyarce/b05fbc2a0a29aba19bd4 to your computer and use it in GitHub Desktop.
Disable Protect
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
function jetpackme_force_deactivate_protect() { | |
if ( class_exists( 'Jetpack' ) ) { | |
Jetpack::deactivate_module( 'protect' ); | |
} | |
} | |
add_action( 'init', 'jetpackme_force_deactivate_protect' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment