Image

Display Environment Type

Descripción

WordPress 5.5 introduced a way to differentiate between environment types (development, staging, production). This plugin shows your site’s environment type in the admin bar and the dashboard «At a Glance» widget.

Más información sobre la característica

To gain additional control — for example, setting the environment or other values from the WP admin (when wp-config.php is writable) — consider installing our other plugin 0 Day Analytics.

Recommended Plugins

  • 0 Day Analytics — a powerful plugin for sites that need more insight into errors and runtime behavior. It includes a Cron manager, a Transient manager (database-backed), DB manager, Snippet manager, Mail manager, Plugin Version Switcher available from the Plugins page and many more.

Capturas

  • Image
    Visualización de la barra de administración (producción).
  • Image
    Visualización de la barra de administración (pruebas).
  • Image
    Visualización de la barra de administración (desarrollo).
  • Image
    Visualización de la barra de administración (personalizado).
  • Image
    El widget «De un vistazo».

Instalación

  1. Instala y activa el plugin desde el menú «Plugins» de WordPress.

FAQ

¿Puedo establecer un color personalizado para mis tipos de entorno?

Colors are intentionally fixed to avoid confusion. If colors were configurable, they’d need to be identical across all related servers to remain consistent.

¿Qué ocurre si defino tipos de entorno personalizados?

Custom environment types were briefly supported in WordPress 5.5 but were removed in 5.5.1. This plugin does not support custom types.

Why don’t non-administrators see the environment type on the front end?

By default, the environment type is shown only to users with administrative capabilities. This avoids exposing a prominent colored indicator to regular subscribers and other non-admin users.

For additional control, use the det_display_environment_type filter hook. Example:

function rt_det_display_filter( $display ) {
    // Disable the environment type display for user ID 2.
    return ( get_current_user_id() !== 2 );
}
add_filter( 'det_display_environment_type', 'rt_det_display_filter' );

Reseñas

Image
24 de enero de 2024
Five stars for Display Environment Type! Huge thanks to the author for creating this gem. The plugin might be small, but it’s incredibly useful, doing exactly what you’d expect without any unnecessary clutter. No settings hassle – just install and get to work seamlessly.
Image
26 de abril de 2022
I switch a LOT between production sites and a clone made for testing, when creating a real staging environment is not possible. More than once, I have unintentionally made changes to the wrong instance of the site. That’s no fun. Display Environment Type makes it very clear what I’m working on, when I should pay extra attention. Recommended.
Image
21 de agosto de 2020
Have you ever accidentally added test content to a productive website? You can now define a constant in your wp-config.php to distinguish between development, staging and productuion sites. To make this visible, this lean but helpful plugin adds an indicator to the admin bar and dashboard widget which helps to avoid mistakes as adding «Lorem ipsum» to your productive site. 🙂 Plugin works like a charm. No settings needed. Install, activate and feel happy.
Leer todas las 4 reseñas

Colaboradores y desarrolladores

«Display Environment Type» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Display Environment Type» está traducido en 14 idiomas. Gracias a los traductores por sus contribuciones.

Traduce «Display Environment Type» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

1.6.0 (2025-12-18)

  • Code improvements. Added the Gutenberg menu. 0 Day Analytics introduced.

1.5.0 (2024-07-01)

  • Code improvements; shows the constants’ values regardless of the WP_DEBUG constant. WP Control plugin introduced.

1.4.0 (2024-04-07)

  • Code improvements and UI fixes — show the icon on mobile and set colors in the «At a Glance» widget. Added WordPress version in the drop-down menu.

1.3.5 (2025-04-04)

  • Added a drop-down submenu with WP constants and their values (enabled / disabled).

1.3.4 (2024-12-20)

  • Added a filter hook to modify the environment’s display name (thanks @erniecom).

1.3.3 (2024-07-05)

  • Internationalization improvements by @tekapo.

1.3.2 (2023-11-10)

  • Accessibility improvements by @mrwweb.

1.3.1 (2022-03-30)

  • Skip loading the CSS file on the front end if the toolbar is hidden (thanks @tflight).

1.3 (2020-08-25)

  • Code refactor (thank you, @markjaquith).
  • Environment type now hidden by default for subscribers.

1.2.1 (2020-08-23)

  • Removed the distracting hover effect (thank you, @markjaquith).
  • Hardening against XSS (props @markjaquith).

1.2 (2020-08-21)

  • Añade un gancho de filtro para permitirte determinar si se muestra el entorno.

1.1 (2020-08-21)

  • Añadida una visualización condicional en la vista pública (solo para administradores).
  • Mejorado el inicio del plugin.

1.0.2 (2020-08-21)

  • Eliminada la visualización (sin estilo) en la barra de administración de la vista pública.
  • Añadida una sección de FAQ al archivo «readme».

1.0.1 (2020-08-21)

  • Corregida la descripción y la URI del plugin.

1.0 (2020-08-20)

  • Versión inicial.