{"repo":"roots/wp-stage-switcher","free":true,"listed":false,"github":"https://github.com/roots/wp-stage-switcher","clone":"git clone https://github.com/roots/wp-stage-switcher.git","description":"WordPress plugin that allows you to switch between different environments from the admin bar","language":"PHP","stars":377,"topics":["wp-env","wp-environment","wp-adminbar","wordpress","wordpress-plugin"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"WordPress Stage Switcher A WordPress plugin that allows you to switch between different environments from the admin bar. 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: WP ENV must be defined as the current environment: 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: 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: Example usage: bedrock/stage switcher visibility Control who can see the stage switcher in the admin bar. Defaults to is super admin() . Example usage: Community Keep track of development and community news. - Join us on Discord by sponsoring us on GitHub - Join us on Roots Discourse - Follow @rootswp on Twitter - Follow the Roots Blog - Subscribe to the Roots Newsletter","default_branch":null,"files":null,"tree":[],"storefront":"/r/roots","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/roots/wp-stage-switcher/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}