PHP Class Roots\StageSwitcher\StageSwitcher
ENVIRONMENTS constant must be a serialized array of 'environment' => 'url' elements:
$envs = [
'development' => 'http://example.dev',
'staging' => 'http://example-staging.com',
'production' => 'http://example.com'
];
define('ENVIRONMENTS', serialize($envs));
WP_ENV must be defined as the current environment
显示文件
Open project: roots/wp-stage-switcher
Public Methods
Private Methods
Method Details
__construct()
public method
admin_bar_stage_switcher()
public method
admin_css()
public method