dev-master
9999999-devTIVWP Force Deactivate Plugins
GPL-3.0
The Requires
by Gregory Karpinsky (@tivnet)
wordpress developer
1.0.1
1.0.1.0TIVWP Force Deactivate Plugins
GPL-3.0
The Requires
by Gregory Karpinsky (@tivnet)
wordpress developer
Wallogit.com
2017 © Pedro Peláez
TIVWP Force Deactivate Plugins
Automatically disables plugins on production server., (*1)
If the WP_LOCAL_DEV define is NOT true, disables plugins that you specify., (*2)
This is the reverse logic of the CWS_Disable_Plugins_When_Local_Dev by Mark Jaquith (@markjaquith)., (*3)
composer.json:{
"require": {
"composer/installers": "^1.0"
},
"extra": {
"installer-paths": {
"path/to/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
]
}
}
}
composer require tivwp/tivwp-force-deactivate-plugins
path/to/mu-plugins/tivwp-force-deactivate-plugins folder. However, WordPress ignores subfolders in the mu-plugins. Therefore, you need to copy the tivwp-force-deactivate-plugins.php one level up, to the mu-plugins.define( 'WP_LOCAL_DEV', true );
wp-config.php (edit, of course):define( 'TIVWP_LOCAL_DEV_PLUGINS', array( 'debug-bar/debug-bar.php', 'query-monitor/query-monitor.php', 'tivwp-email/tivwp-email.php', ) );
GPL-3.0, (*4)
TIVWP Force Deactivate Plugins
GPL-3.0
wordpress developer
TIVWP Force Deactivate Plugins
GPL-3.0
wordpress developer