Skip to content

Instantly share code, notes, and snippets.

@mikeyarce
Created March 30, 2015 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyarce/b05fbc2a0a29aba19bd4 to your computer and use it in GitHub Desktop.
Save mikeyarce/b05fbc2a0a29aba19bd4 to your computer and use it in GitHub Desktop.
Disable Protect
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