开发者 |
roytanck
markjaquith tflight mrwweb tekapo |
---|---|
更新时间 | 2024年7月5日 19:04 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.6 |
版权: | GPLv3 |
The colors are currently fixed. This was done to avoid possible confusion. If the colors were user-configurable, they would need to be set up exactly the same on all related servers.
Custom types were originally added in WordPress 5.5, but they were removed in 5.5.1. This plugin no longer supports them.
There's no display for non-admin users. The reasoning behind this is that in most cases, you'd probably not want to bother logged-in subscribers with a bright-colored box on their admin bar. For the same reason, the environment type is also hidden for subscribers in wp-admin. For additional control, you can use the 'det_display_environment_type' filter hook: 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' );