Download the PHP package tivwp/tivwp-force-deactivate-plugins without Composer
On this page you can find all versions of the php package tivwp/tivwp-force-deactivate-plugins. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package tivwp-force-deactivate-plugins
TIVWP\Force Deactivate Plugins
Automatically disables plugins on production server.
If the WP_LOCAL_DEV define is NOT true, disables plugins that you specify.
This is the reverse logic of the CWS_Disable_Plugins_When_Local_Dev by Mark Jaquith (@markjaquith).
To install
-
Make sure you have the following settings in your project's
composer.json: -
Run this in your project's root folder:
- The plugin files will be installed in the
path/to/mu-plugins/tivwp-force-deactivate-pluginsfolder. However, WordPress ignores subfolders in themu-plugins. Therefore, you need to copy thetivwp-force-deactivate-plugins.phpone level up, to themu-plugins.
Settings
-
Put this to a local config file (excluded from the repo):
- and this - to the
wp-config.php(edit, of course):
Author
- Gregory Karpinsky (@tivnet)
License
GPL-3.0
All versions of tivwp-force-deactivate-plugins with dependencies
PHP Build Version
Package Version
The package tivwp/tivwp-force-deactivate-plugins contains the following files
Loading the files please wait ...