跳到内容

Abhinavdev Environment Badge

v1.1.0

Abhinav Saxena · 2026年10月17日 上架

Displays a customizable badge in the WordPress Admin Bar showing your environment (Local, Staging, Production) to avoid errors on live sites.

正在使用
10 以下
评分
5.0 / 5
累计下载
265
最近更新
2026年10月23日
2 条评价需要 WordPress 5.5+已测试到 7.1.5PHP 7.4+

截图

Admin Bar showing the bright environment badge and system info dropdown.
Admin Bar showing the bright environment badge and system info dropdown.
Settings dashboard featuring live preview and color pickers.
Settings dashboard featuring live preview and color pickers.

Abhinavdev Environment Badge is a lightweight, zero-bloat utility plugin created for WordPress developers, agency teams, and site owners.

Have you or your clients ever accidentally edited posts, deleted products, or updated theme options on a Live Production site believing you were safely working on a Staging or Local sandbox?

This plugin eliminates that risk by injecting an unmistakable, color-coded visual indicator directly into the top WordPress Toolbar (Admin Bar) on both backend and frontend.

Key Features

  • Intelligent Environment Detection: Automatically identifies your environment using native WordPress wp_get_environment_type(), WP_ENVIRONMENT_TYPE constants, or domain heuristics (localhost, .test, .local, staging.*).
  • Manual Override & Custom Labels: Need to specify a custom label like “Client UAT” or “Feature Branch”? Override detection with a single click.
  • Custom Color Palettes: Full control over background and text colors for each environment using native WordPress color pickers.
  • Live Settings Preview: See your badge update in real-time right inside the settings dashboard before saving.
  • System Info Dropdown: Hovering over the badge displays key diagnostic data: Active Environment, WordPress Version, PHP Version, and Host name.
  • Position Controls: Position the badge on the right or left of the admin bar.
  • Frontend Visibility Option: Choose whether logged-in administrators see the badge on the frontend or backend only.
  • 100% Native & Lightweight: Zero third-party JavaScript libraries or external CDN dependencies. Clean CSS and native WordPress Settings API.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums