WP Manifestindependent plugin directory
manifest / admin / wp-stage-switcher

Stage Switcher WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA #2 in Admin & Dashboard

WordPress plugin that allows you to switch between different environments from the admin bar

★ 377stars
513kcomposer installs
2.4.1latest · 5mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/roots/wp-stage-switcher/archive/refs/heads/master.zip

On Packagist as roots/wp-stage-switcher:

composer require roots/wp-stage-switcher
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress Stage Switcher

A WordPress plugin that allows you to switch between different environments from the admin bar.

WordPress Stage Switcher

Support us

Roots is an independent open source org, supported only by developers like you. Your sponsorship funds WP Packages and the entire Roots ecosystem, and keeps them independent. Support us by purchasing Radicle or sponsoring us on GitHub — sponsors get access to our private Discord.

Requirements

You'll need to have ENVIRONMENTS and WP_ENV defined in your WordPress config.

The ENVIRONMENTS constant must be an array of 'environment' => 'url' elements:

$envs = [
  'development' => 'http://example.dev',
  'staging'     => 'http://staging.example.com',
  'production'  => 'http://example.com'
];
Config::define('ENVIRONMENTS', $envs);

WP_ENV must be defined as the current environment:

Config::define('WP_ENV', 'development');

If you use Bedrock, WP_ENV is already defined in the config.

Installation

This plugin must be installed via Composer. Add wp-stage-switcher to your project's dependencies:

composer require roots/wp-stage-switcher

Filters

bedrock/stage_switcher_colors

Customize the background colors for each environment in the admin bar menu. Returns an array of 'environment' => 'color' pairs.

Default colors:

[
  'development' => 'firebrick',
  'staging'     => 'chocolate',
  'production'  => 'transparent',
]

Example usage:

add_filter('bedrock/stage_switcher_colors', function ($colors) {
  return [
    'development' => '#dc2626',
    'staging'     => '#ea580c',
    'production'  => '#10b981',
  ];
});

bedrock/stage_switcher_visibility

Control who can see the stage switcher in the admin bar. Defaults to is_super_admin().

Example usage:

add_filter('bedrock/stage_switcher_visibility', function ($visible) {
  return current_user_can('manage_options');
});

Community

Keep track of development and community news.

Releases

10 releases.

Tag
Published
2.4.1 latest
Apr 26, 2026 5mo ago
Mar 9, 2026 7mo ago
Oct 16, 2025 1 year ago
May 31, 2022 4 years ago
Oct 22, 2021 5 years ago
Mar 23, 2019 7 years ago
Feb 10, 2016 10 years ago
Aug 20, 2014 12 years ago
Jul 22, 2014 12 years ago
Apr 7, 2014 12 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Stage Switcher 2.4.0 · audited by WP Registry

No security issues found.

Audited release
2.4.0
Findings
none
Worst severity
—
Content hash
80be6e507e5dced25641910c…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.