Created
October 4, 2017 09:01
-
-
Save sareiodata/3de4939c27be9f8d73d3aef48a763a1c to your computer and use it in GitHub Desktop.
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
<?php | |
/* | |
Plugin Name: Disable Specific Plugins in Dev - translatepress.com | |
Plugin URI: http://translatepress.com | |
Description: Disable specified plugins in development environment | |
Author: TranslatePress | |
Version: 1.1 | |
Author URI: http://translatepress.com | |
*/ | |
if ( site_url() !== 'https://translatepress.com' ) { | |
$plugins = array( | |
'backupbuddy/backupbuddy.php', | |
'wp-rocket/wp-rocket.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