Ever wanted to have some plugins active on your Live or Production site but automatically deactivated on your Staging or Test server? Oh yes you have! This makes it easy to do that. For example, I use it to make sure my analytics or caching or auto-social posting plugins are only active on the live site and never active on the staging sites. This script assumes that every site is Production unless the site’s domain contains one of the `$stagingKeywords` (which you can customize) and automatically deactivates the plugins you put in the `PLUGINS_TO_DEACTIVATE_ON_STAGING` list. And if you need the reverse functionality, then check out Deactivate_Plugins_On_Production.
Leave a Reply