Title: Show Environment in Admin Bar
Author: Paul Biron
Published: <strong>8. August 2017</strong>
Last modified: 16. Juli 2024

---

Plugins suchen

![](https://ps.w.org/show-environment-in-admin-bar/assets/banner-772x250.png?rev
=1891868)

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://ps.w.org/show-environment-in-admin-bar/assets/icon-128x128.png?rev=1710251)

# Show Environment in Admin Bar

 Von [Paul Biron](https://profiles.wordpress.org/pbiron/)

[Herunterladen](https://downloads.wordpress.org/plugin/show-environment-in-admin-bar.1.2.1.zip)

 * [Details](https://de.wordpress.org/plugins/show-environment-in-admin-bar/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/show-environment-in-admin-bar/#reviews)
 * [Entwicklung](https://de.wordpress.org/plugins/show-environment-in-admin-bar/#developers)

 [Support](https://wordpress.org/support/plugin/show-environment-in-admin-bar/)

## Beschreibung

If you’re like me, you often have multiple versions of the same WordPress site open
in different browser windows, e.g., production in one window and development in 
another window.

And if you’re like me, you have also unwittingly edited content in the production
environment thinking you were doing so in the development environment or vice versa.

If so, then this plugin is for you!

It adds an indication of the current environment to the Admin Bar that is easier
to see than examining the URL in your browser’s address bar.

### Out-of-the-box behavior

Out-of-the-box, 2 different environments are recognized:

 * Production
    - The node added to the Admin Bar has a red background (i.e., Stop/be careful
      with any changes you make).
    - If neither a staging, QA, nor development environment is detected, then `Prod`
      is displayed in the Admin Bar.
 * Development
    - The node added to the Admin Bar has a green background (i.e., Go ahead, it
      is safe to make changes).
    - If WP is running on localhost (either a loopback IP address or LAN IP address),
      then `Local` displays in the Admin Bar.
    - If WP_DEBUG is defined & true, then `Dev` displays in the Admin Bar.

### Customizing the out-of-the-box behavior

Two additional environments are supported, but cannot be automatically detected:

 * Staging
    - The node added to the Admin Bar has a yellow-ish background (i.e., Slow down,
      changes _might_ make it into the production site).
    - For information on how to enable this environment, see the [documentation](https://github.com/pbiron/shc-show-env/).
 * QA
    - The node added to the Admin Bar has a blue background (i.e., „It’s cool“, 
      changes you make won’t affect the production site).
    - For information on how to enable this environment, see the [documentation](https://github.com/pbiron/shc-show-env/).

## Screenshots

[⌊Production⌉⌊Production⌉[

Production

[⌊Staging⌉⌊Staging⌉[

Staging

[⌊QA⌉⌊QA⌉[

QA

[⌊Development⌉⌊Development⌉[

Development

[⌊Custom — Preview⌉⌊Custom — Preview⌉[

Custom — Preview

## Rezensionen

![](https://secure.gravatar.com/avatar/8a63a6c8c45156bab5edfc165e816a24114af9c58a2bdb4fa6a87878ccd3e742?
s=60&d=retro&r=g)

### 󠀁[Very handy](https://wordpress.org/support/topic/very-handy-226/)󠁿

 [modus](https://profiles.wordpress.org/modus/) 13. Oktober 2020

Thanks a lot for publishing and maintaining it. I'd only wish it would jump right
at me by coloring the whole bar instead of a corner of the screen.

![](https://secure.gravatar.com/avatar/cd257f389c91f137dab25f343b527123e887135b01921ebb6206e40cfa2eb636?
s=60&d=retro&r=g)

### 󠀁[Useful for developers like us](https://wordpress.org/support/topic/useful-for-developers-like-us/)󠁿

 [Knut Sparhell](https://profiles.wordpress.org/knutsp/) 12. September 2020

I'm like the author. I sometimes change admin color, but can never remember what
color I set for Prod vs Dev.

![](https://secure.gravatar.com/avatar/f3c4b44161119b358d2b0a29605a3e0ebff3ee26a170cb642b095730e8f9d746?
s=60&d=retro&r=g)

### 󠀁[Essential plugin when working in multiple environments](https://wordpress.org/support/topic/essential-plugin-when-working-in-multiple-environments/)󠁿

 [joppuyo](https://profiles.wordpress.org/joppuyo/) 11. März 2019 1 Antwort

Super handy if you are click-happy with your mouse like me. Red "Prod" badge in 
admin bar is effective way to prevent you from accidentally messing up the production

 [ Alle 3 Rezensionen lesen ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/)

## Mitwirkende und Entwickler

„Show Environment in Admin Bar“ ist Open-Source-Software. Folgende Menschen haben
an diesem Plugin mitgewirkt:

Mitwirkende

 *   [ Paul Biron ](https://profiles.wordpress.org/pbiron/)

„Show Environment in Admin Bar“ wurde in 2 Sprachen übersetzt. Danke an [die Übersetzer](https://translate.wordpress.org/projects/wp-plugins/show-environment-in-admin-bar/contributors)
für ihre Mitwirkung.

[Übersetze „Show Environment in Admin Bar“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/show-environment-in-admin-bar)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/show-environment-in-admin-bar/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/show-environment-in-admin-bar/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/show-environment-in-admin-bar/)
per [RSS](https://plugins.trac.wordpress.org/log/show-environment-in-admin-bar/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 1.2.1 (2024-07-15)

 * Bug fix: forgot to declare `$wp_version` as a global in `SHC_Show_Env:init()`.
   D’oh!

#### 1.2 (2024-07-15)

 * Updated the priority at which `admin_bar_menu` is hooked into. See [Trac 60685, comment 18](https://core.trac.wordpress.org/ticket/60685#comment:18)
   for why this change was made.

#### 1.1

 * General code reorg
 * Added support for QA environment
 * minor CSS fixes
 * changed the Text Domain (for localization) to ’show-environment-in-admin-bar‘,
   so that the [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/show-environment-in-admin-bar)
   service can be used.

#### 1.0.1

 * Correct formatting in readme.txt
 * Removed GitHub Plugin URL reader

#### 1.0

 * Initial release on .org

## Meta

 *  Version **1.2.1**
 *  Zuletzt aktualisiert **vor 2 Jahren**
 *  Aktive Installationen **100+**
 *  WordPress-Version ** 4.6 oder höher **
 *  Getestet bis **6.6.11**
 *  Sprachen
 * [English (US)](https://wordpress.org/plugins/show-environment-in-admin-bar/),
   [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/show-environment-in-admin-bar/)
   und [Portuguese (Portugal)](https://pt.wordpress.org/plugins/show-environment-in-admin-bar/).
 *  [Übersetze in deine Sprache](https://translate.wordpress.org/projects/wp-plugins/show-environment-in-admin-bar)
 * Schlagwörter
 * [admin](https://de.wordpress.org/plugins/tags/admin/)[admin bar](https://de.wordpress.org/plugins/tags/admin-bar/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/show-environment-in-admin-bar/advanced/)

## Bewertungen

 5 von 5 Sternen.

 *  [  3 5-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=1)

[Deine Rezension](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/)

## Mitwirkende

 *   [ Paul Biron ](https://profiles.wordpress.org/pbiron/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/show-environment-in-admin-bar/)

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z6D97FA595WSU)