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
Afficher le fichier
Open project: roots/wp-stage-switcher
Méthodes publiques
Private Methods
Method Details
__construct()
public méthode
admin_bar_stage_switcher()
public méthode
admin_css()
public méthode