-
-
Save dejanmarkovic/8213770 to your computer and use it in GitHub Desktop.
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 all plugins | |
* Plugin URI: https://gist.github.com/JCPry/8026015 | |
* Description: Short-circuits the function in WordPress that determines which plugins are activated, and tells WordPress that no plugins are activated | |
* Version: 1.0 | |
* Author: Jeremy Pry | |
* Author URI: http://jeremypry.com/ | |
*/ | |
add_filter( 'pre_option_active_plugins', '__return_empty_array' ); | |
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