Plugin Deactivator is a WordPress plugin designed to manage plugin deactivation based on the environment. It is particularly useful for staging or local development environments, where certain plugins need to be kept inactive.
- Automatically deactivates a set of specified plugins.
- Allows manual deactivation and reactivation of plugins through the WordPress admin panel.
- Keeps track of deactivated plugins in a custom database table.
- Upload Plugin: Upload the
plugin-deactivator
folder to the/wp-content/plugins/
directory. - Activate Plugin: Activate the plugin through the 'Plugins' menu in WordPress.
- Configure: Visit the 'Plugin Deactivator' page under the admin menu to manage plugin deactivation.
- Go to the 'Plugin Deactivator' page in the WordPress admin area.
- Select the plugins you wish to deactivate.
- Click the 'Deactivate Selected Plugins' button.
- On the 'Plugin Deactivator' page, you'll see a list of currently deactivated plugins.
- Click the 'Reactivate' button next to the plugin you wish to reactivate.
The plugin will automatically deactivate any plugins that are listed in the plugin's custom table upon each admin page load. This ensures that certain plugins remain inactive in specific environments.
Q: How does Plugin Deactivator determine which environment it is in?
A: Plugin Deactivator checks the URL to determine if it contains 'staging', 'stage', or 'local' to identify the environment.
Q: What happens to the custom table when the plugin is deactivated?
A: The custom table created by the plugin is removed from the database upon plugin deactivation.
- 1.0
- Initial release.
For support, please visit https://go-agency.com.
This plugin is released under the GPL license.