# Environment Indicator for WordPress

> Show a colored Local / Staging / Production badge in the admin bar so you always know which site you are editing. Part of Toggleworks, one plugin for the…

TW-ADM-09 Interface


Show a colored Local / Staging / Production badge in the admin bar so you always know which site you are editing.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Environment Indicator

**Part number**
: TW-ADM-09
**Section**
: [Interface](https://togglework.app/features/interface/)
**Settings**
: 10 (4 on/off)
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

With local, staging and live copies of the same site open in different tabs, it is easy to make a change on the wrong one. A coloured badge in the admin bar makes the difference obvious.

### What it does

- A Local, Development, Staging or Production badge in the admin bar, in a colour per environment.
- Detects the environment automatically from WP\_ENVIRONMENT\_TYPE or the site address.
- Optionally tints the whole admin bar, or shows nothing on production.
- Warns when “Discourage search engines” is ticked on a live site, a common launch mistake.

![Environment Indicator settings screen in the Toggleworks WordPress plugin, showing Environment, Custom badge text, Local color, Development color](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/interface-environment-indicator.webp?v=1795524194)

The Environment Indicator screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Switch it on; check the detected environment is right, or set it by hand.

## What you can set

Switch Environment Indicator on in Toggleworks → Interface, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Environment
- Custom badge text
- Local color
- Development color
- Staging color
- Production color
- Tint the whole admin bar with the environment color
- Show nothing on production
- Only show to administrators
- Warn when search engines are blocked on production

## Good to know

- Keep the search-engine warning on. A forgotten “Discourage search engines” tick can keep a new site out of Google for weeks.

## One less plugin to install

Environment Indicator does a job people often install a separate plugin for:

- Showing which environment you’re inOften done with WP Staging

## Comes with 187 more parts

Environment Indicator is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 12 Interface parts](https://togglework.app/features/interface/)

### People also look for it as

- environment
- staging
- production
- local
- development
- badge
- admin bar
- wp\_environment\_type

## Often switched on with it

- [Mail Control (Test Mode)](https://togglework.app/features/email/mail-control/) — TW-EML-04 · Stop all outgoing email, or send every email to one address instead. Ideal for staging and development sites. · 3 settings
- [Staging Protection](https://togglework.app/features/security/staging-protection/) — TW-SEC-16 · Hide the whole site behind a shared password for visitors who are not logged in. wp-admin and the login page keep working. · 8 settings
- [Staging Site](https://togglework.app/features/agency/staging/) — TW-AGY-10 · Create a private copy of this site in /staging to test updates and changes safely, then push the database back to live — or throw… · 1 setting
- [Admin Bar Manager](https://togglework.app/features/interface/admin-bar-manager/) — TW-ADM-01 · Choose exactly which toolbar items each role sees — including items added by other plugins — and add your own shortcut links. · Own screen in wp-admin
- [Clean Admin](https://togglework.app/features/interface/clean-admin/) — TW-ADM-05 · Declutter wp-admin: hide the admin bar, notices, help tabs, update nags and admin bar items. · 7 settings
- [Admin Branding](https://togglework.app/features/white-label/admin-branding/) — TW-WHL-01 · Rebrand wp-admin: footer text, admin bar logo, a custom dashboard welcome box and a fixed color scheme. · 10 settings

## Questions

**Is Environment Indicator included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Environment Indicator among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Environment Indicator slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Environment Indicator only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Environment Indicator before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/interface/environment-indicator/
