Created
July 25, 2013 00:31
-
-
Save sheabunge/6075849 to your computer and use it in GitHub Desktop.
When installing Capsule on a WordPress multisite network, the network active plugins can interfere with Capsule and stop it from working. This snippet, when installed as a mu-plugin, will disable all network active plugins for sites that use the Capsule theme.
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
<?php | |
/** | |
* Plugin Name: Disable Sitewide Plugins | |
* Author: Shea Bunge | |
* Author URI: http://bungeshea.com | |
* Version: 0.1 | |
*/ | |
if ( 'capsule' === get_option( 'template' ) ) { | |
add_filter( 'pre_site_option_active_sitewide_plugins', '__return_empty_array' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment