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

---

Prohledat pluginy

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

Plugin **nebyl testován na 3 nejnovějších verzích WordPressu.** Nemusí už být tedy
podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může
být nestabilní.

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

# Show Environment in Admin Bar

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

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

 * [Podrobnosti](https://cs.wordpress.org/plugins/show-environment-in-admin-bar/#description)
 * [Hodnocení](https://cs.wordpress.org/plugins/show-environment-in-admin-bar/#reviews)
 * [Vývojáři](https://cs.wordpress.org/plugins/show-environment-in-admin-bar/#developers)

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

## Popis

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/).

## Snímky obrazovky

[⌊Production⌉⌊Production⌉[

Production

[⌊Staging⌉⌊Staging⌉[

Staging

[⌊QA⌉⌊QA⌉[

QA

[⌊Development⌉⌊Development⌉[

Development

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

Custom — Preview

## Recenze

![](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. 10. 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. 9. 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. 3. 2019 1 odpověď

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

 [ Přečtěte si všechny 3 recenze ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/)

## Autoři

Show Environment in Admin Bar je otevřený software. Následující lidé přispěli k 
vývoji tohoto pluginu.

Spolupracovníci

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

Plugin „Show Environment in Admin Bar“ byl přeložen do 2 jazyků. Děkujeme všem [překladatelům](https://translate.wordpress.org/projects/wp-plugins/show-environment-in-admin-bar/contributors)
za jejich pomoc.

[Přeložte “Show Environment in Admin Bar” do svého jazyka.](https://translate.wordpress.org/projects/wp-plugins/show-environment-in-admin-bar)

### Zajímá vás vývoj?

[Prohledejte kód](https://plugins.trac.wordpress.org/browser/show-environment-in-admin-bar/),
podívejte se do [SVN repozitáře](https://plugins.svn.wordpress.org/show-environment-in-admin-bar/),
nebo se přihlaste k[ odběru protokolu vývoje](https://plugins.trac.wordpress.org/log/show-environment-in-admin-bar/)
pomocí [RSS](https://plugins.trac.wordpress.org/log/show-environment-in-admin-bar/?limit=100&mode=stop_on_copy&format=rss).

## Přehled změn

#### 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

 *  Verze **1.2.1**
 *  Poslední aktualizace **před 2 roky**
 *  Aktivních instalací **200+**
 *  Verze WordPressu ** 4.6 nebo novější **
 *  Testováno až do WordPressu **6.6.7**
 *  Jazyky
 * [English (US)](https://wordpress.org/plugins/show-environment-in-admin-bar/),
   [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/show-environment-in-admin-bar/)
   a [Portuguese (Portugal)](https://pt.wordpress.org/plugins/show-environment-in-admin-bar/).
 *  [Přeložte do vašeho jazyka](https://translate.wordpress.org/projects/wp-plugins/show-environment-in-admin-bar)
 * Štítky
 * [admin](https://cs.wordpress.org/plugins/tags/admin/)[admin bar](https://cs.wordpress.org/plugins/tags/admin-bar/)
 *  [Podrobnosti](https://cs.wordpress.org/plugins/show-environment-in-admin-bar/advanced/)

## Hodnocení

 5 z 5 hvězdiček.

 *  [  3 5hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=5)
 *  [  0 4hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=4)
 *  [  0 3hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=3)
 *  [  0 2hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=2)
 *  [  0 1hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/?filter=1)

[Vaše hodnocení](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/#new-post)

[Zobrazit všechny recenze](https://wordpress.org/support/plugin/show-environment-in-admin-bar/reviews/)

## Spolupracovníci

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

## Podpora

Potřebujete pomoc?

 [Fórum podpory](https://wordpress.org/support/plugin/show-environment-in-admin-bar/)

## Dary

Chtěli byste podpořit vývoj tohoto pluginu?

 [ Přispět na tento plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z6D97FA595WSU)