Linux 软件免费装
Banner图

Abhinavdev Environment Badge

开发者 abhinavdev
abhinavsaxena
更新时间 2026年10月23日 19:24
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

admin bar environment staging local development toolbar badge

下载

1.0.0 1.1.0

详情介绍:

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

安装:

  1. Upload the abhinavdev-environment-badge folder to your /wp-content/plugins/ directory, or install the .zip file via Plugins > Add New > Upload Plugin in your WordPress admin dashboard.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Navigate to Settings > Environment Badge to customize your environment colors, labels, and display preferences.

屏幕截图:

  • Settings dashboard featuring live preview and color pickers.

常见问题:

Does this plugin work with WordPress core's WP_ENVIRONMENT_TYPE?

Yes! If you define define( 'WP_ENVIRONMENT_TYPE', 'staging' ); inside your wp-config.php, the plugin automatically recognizes it and applies the corresponding staging badge.

Will site visitors see this badge?

No. The badge is strictly rendered inside the WordPress Admin Bar for logged-in users who have administrative or post-editing privileges. Public visitors will never see it.

Does this plugin affect site performance?

Not at all. The plugin enqueues less than 2 KB of pure CSS and runs zero external requests or heavy database queries.

Can I use custom colors?

Yes. Under Settings > Environment Badge, you can use the color pickers to set any hex color for production, staging, development, local, or custom environments.

更新日志:

1.1.0 1.0.0