Skip to content

dragunoff/wp-stage-switcher

Repository files navigation

Stage switcher for WordPress

Adds a menu to the admin bar to quickly identify different environments for a site (e.g. production and development) and easily switch to the same URL on other environments. Multi-site compatible for both sub-domain and sub-directory installations.

The plugin in action

Installation and configuration

Refer to the plugin readme file.

Development

Install development dependencies:

composer install

Codestyle, linting and static analysis

Check for syntax errors:

composer run cs:check

Perform code static analysis:

composer run analyse

Check for codestyle violations:

composer run cs:check

Automatically fix codestyle violations:

composer run cs:fix

Tests

Run unit tests:

composer run test

Run unit tests continuously:

composer run test:watch

Screenshots

The settings page The settings page

The settings page Adding the current environment to the list

About

Quickly switch between environments (live, test, dev) from the admin bar.

Resources

Stars

Watchers

Forks

Packages

No packages published