Created
February 20, 2015 18:45
-
-
Save theukedge/3b8120df4b43ece4aab7 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 /* Disable specified plugins in development environment */ | |
if ( defined( 'WP_ENV' ) && WP_ENV == 'dev' ) { | |
$plugins = array( | |
'iwp-client/init.php', | |
'google-analytics-for-wordpress/googleanalytics.php', | |
); | |
require_once(ABSPATH . 'wp-admin/includes/plugin.php'); | |
deactivate_plugins($plugins); | |
/* Put Jetpack in development mode */ | |
define( 'JETPACK_DEV_DEBUG', true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment