| 开发者 |
abhinavdev
abhinavsaxena |
|---|---|
| 更新时间 | 2026年10月23日 19:24 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp_get_environment_type(), WP_ENVIRONMENT_TYPE constants, or domain heuristics (localhost, .test, .local, staging.*).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.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.
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.
Not at all. The plugin enqueues less than 2 KB of pure CSS and runs zero external requests or heavy database queries.
Yes. Under Settings > Environment Badge, you can use the color pickers to set any hex color for production, staging, development, local, or custom environments.
wp_get_environment_type() and host matching.