- Active installs
- 10+
- 3 ratings
- 5.0
- Last updated
- 12 years ago
- Version
- 1.0
- Tested up to
- WP 4.0.38
About this plugin
If you develop in a local machine, at some point you’ll have some active plugins there that you don’t need in the servers that you’re deploying to. Sure, you can deactivate them in your local machine before deploying, or after deploying in the remote ones, but you’re gonna need them again to be active if you want to perform local work in the future, specially when you update your local database from a remote one. On such kind of scenarios, the whole process of manually activating and deactivating plugins for each stage can be really frustrating, sometimes even taking a lot of your time.
Stage WP Plugin Manager is meant to solve that problem in an quick and elegant way, by doing an automatic “fake” activation of the plugins you select for each stage: every plugin you attach to a stage will be immediatly treated as an active plugin on that stage, no matter what its previous status was, or its current status on the other stages. Since the list of active plugins is just filtered instead of rewritten, you can restore the previous status of a plugin by detaching it, and go back to your original setup by deactivating Stage WP Plugin Manager.
Please read the following instructions very carefully.
Getting Started
Stage WP Plugin Manager works on some assumptions about your workflow:
- You have a constant named
WP_STAGEdefined in your WordPress configuration file (oftenwp-config.php). - The value of
WP_STAGEis one of the supported stages. The default supported stages arelocal,stagingandproduction. - The value of
WP_STAGEis different in each of your stages.
Some developers prefer to keep different configuration files for each one of their stages, or change the values of their constants based on some evaluation. For example, you could have something like this in your wp-config.php file:
if ( file_exists( dirname( __FILE__ ) . '/local-config.php' ) ) {
define( 'WP_STAGE', 'local' );
} elseif ( file_exists( dirname( __FILE__ ) . '/staging-config.php' ) ) {
define( 'WP_STAGE', 'staging' );
} else {
define( 'WP_STAGE', 'production' );
}
If you follow this example, note that local-config.php should not be included in your deployments to staging and production, and both local-config.php and staging-config.php should not exist in your production stage.
Attach & Detach
Once you have installed this plugin, you will notice that a new link appears under each active plugin of the list, which reads “Attach to [your-stage] stage”. By clicking that link, you are setting a plugin to be always active in the stage you’re working at, and not active on the other stages (unless you attach the plugin to the other stages too).
In case you want to remove a plugin from the list of active plugins for a stage, you just need to click the “Detach from [your-stage] stage”.
Additionally, you can make bulk selections of plugins to be attached or detached for each stage by going to Plugins > Stage Management.
Add & Extend Functionality
Stage WP Plugin Manager allows you to extend its functionality by offering hooks for filters and actions.
For example, you can add your custom stages or even remove the default ones by hooking in the stage_wp_plugin_manager_stages filter, having something like this in your plugin:
function add_stages( $stages ) {
$stages[] = 'other';
return $stages;
}
add_filter( 'stage_wp_plugin_manager_stages', 'add_stages' );
Additionally, you can give a nicer name to your new stage by hooking in the stage_wp_plugin_manager_stages_txt filter:
function add_stages_txt( $stages_txt ) {
$stages_txt['other'] = __( 'Other stage' );
return $stages_txt;
}
add_filter( 'stage_wp_plugin_manager_stages_txt', 'add_stages_txt' );
Here’s the complete list of actions and filters that Stage WP Plugin Manager offers:
Action hooks
stage_wp_plugin_manager_before_init: Perform some process before Stage WP Plugin Manager initializes.stage_wp_plugin_manager_init: Perform some process after Stage WP Plugin Manager initializes.
Filter hooks
stage_wp_plugin_manager_stages: Modifiy the current supported stages.stage_wp_plugin_manager_default_stage: Modify the default stage.stage_wp_plugin_manager_managed_plugins: Modify the list of plugins managed by Stage WP Plugin Manager.stage_wp_plugin_manager_stage_plugins: Modify the list of plugins attached to the current stage.stage_wp_plugin_manager_non_stage_plugins: Modify the list of managed plugins that are not attached to the current stage.stage_wp_plugin_manager_nonce_key: Modify the nonce key used for data validation.stage_wp_plugin_manager_help_description: Modify contents of “Description” help tab.stage_wp_plugin_manager_help_getting_started: Modify contents of “Getting Started” help tabstage_wp_plugin_manager_help_attach_detach: Modify contents of “Attach & Detach Plugins” help tabstage_wp_plugin_manager_help_add_extend: Modify contents of “Adding Stages & Extending” help tabstage_wp_plugin_manager_help_credits: Modify contents of “Credits” help tab
WordPress MultiSite Compatibility
If you’re using MultiSite and set this plugin to network activated, you can use it to attach plugins to stages on a sitewide basis 🙂
Improve Your Workflow
This plugin was originally meant as a complement for WP Bareboner, an advanced Git model repo, and Stage WP, a deployment tool based in Capistrano. The three projects work really well separated, but their real power can only be seen by using them together.
Contribute
You can make suggestions and submit your own modifications to this plugin on Github.
Screenshots
Analytics
Live from WordPress.org, refreshed daily. Last refresh Oct 19, 2026.
- Passes 1 of 3 health checks below.
Health checks
What a careful site owner looks at before installing.
- Actively maintained Last release 12 years ago
- Tested with current WordPress Tested up to 4.0.38, 31 releases behind
- Support questions answered Nothing open in the last two months
- Well rated Only 3 ratings so far
- Latest week
- 7
- Typical week
- 6
- Peak
- 13 Week of Mar 30
View as table
| Week | Downloads |
|---|---|
| Week of Oct 12 | 7 |
| Week of Oct 5 | 8 |
| Week of Sep 28 | 12 |
| Week of Sep 21 | 9 |
| Week of Sep 14 | 9 |
| Week of Sep 7 | 9 |
| Week of Aug 31 | 6 |
| Week of Aug 24 | 5 |
| Week of Aug 17 | 6 |
| Week of Aug 10 | 9 |
| Week of Aug 3 | 5 |
| Week of Jul 27 | 5 |
| Week of Jul 20 | 6 |
| Week of Jul 13 | 3 |
| Week of Jul 6 | 3 |
| Week of Jun 29 | 4 |
| Week of Jun 22 | 8 |
| Week of Jun 15 | 6 |
| Week of Jun 8 | 6 |
| Week of Jun 1 | 9 |
| Week of May 25 | 5 |
| Week of May 18 | 10 |
| Week of May 11 | 10 |
| Week of May 4 | 9 |
| Week of Apr 27 | 5 |
| Week of Apr 20 | 6 |
| Week of Apr 13 | 7 |
| Week of Apr 6 | 10 |
| Week of Mar 30 | 13 |
| Week of Mar 23 | 6 |
| Week of Mar 16 | 5 |
| Week of Mar 9 | 10 |
| Week of Mar 2 | 9 |
| Week of Feb 23 | 5 |
| Week of Feb 16 | 7 |
| Week of Feb 9 | 8 |
| Week of Feb 2 | 3 |
| Week of Jan 26 | 4 |
| Week of Jan 19 | 4 |
| Week of Jan 12 | 4 |
| Week of Jan 5 | 10 |
| Week of Dec 29, 2025 | 6 |
| Week of Dec 22, 2025 | 4 |
| Week of Dec 15, 2025 | 5 |
| Week of Dec 8, 2025 | 4 |
| Week of Dec 1, 2025 | 6 |
| Week of Nov 24, 2025 | 3 |
| Week of Nov 17, 2025 | 6 |
| Week of Nov 10, 2025 | 3 |
| Week of Nov 3, 2025 | 6 |
| Week of Oct 27, 2025 | 5 |
| Week of Oct 20, 2025 | 5 |
Not ranked yet. Install, download and rating ranks cover the 5,000 most popular plugins on WordPress.org, and Trending needs about 100 downloads on a typical day.
Gathering install data
WordPress.org only publishes today's install count, so WPFolks records it every day. The chart appears here once there is enough history to draw.
Reviews
From folks on WPFolks
No reviews from folks yet. Used it? Be the first to say how it went.