We've released a WordPress Stage Switcher plugin that will allow you to easily switch between environments from the WordPress admin bar:
You'll need to have
WP_ENV defined in your WordPress config to use the stage switcher.
ENVIRONMENTS constant must be a serialized array of
'environment' => 'url' elements:
$envs = array( 'development' => 'http://example.dev', 'staging' => 'http://staging.example.com', 'production' => 'http://example.com' ); define('ENVIRONMENTS', serialize($envs));
WP_ENV must be defined as the current environment:
If you use Bedrock,
WP_ENV is already defined in the config.