Download the PHP package renakdup/colorize-wp-adminpanel-for-environments without Composer
On this page you can find all versions of the php package renakdup/colorize-wp-adminpanel-for-environments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download renakdup/colorize-wp-adminpanel-for-environments
More information about renakdup/colorize-wp-adminpanel-for-environments
Files in renakdup/colorize-wp-adminpanel-for-environments
Package colorize-wp-adminpanel-for-environments
Short Description WordPress script to colorize admin-bar for different environments. Developers, Content Managers, and others will never confuse the environment where they work.
License MIT
Informations about the package colorize-wp-adminpanel-for-environments
Colorize WordPress admin panel for environments
Confusing development environments is easy, especially when working under deadline pressure, on multiple projects simultaneously, or simply due to human error.
One effective way to solve this problem is by visually distinguishing the WordPress admin panel with different colors depending on the development environment. This approach not only increases the developers’ level of attentiveness but also facilitates faster and more intuitive differentiation between environments, reducing the likelihood of errors.
Installation
-
Specify your current environment.
On each environment (local, development, qa, stage, production), you will need to add theWP_ENVIRONMENT_TYPE
constant with its value towp-config.php
.
Choose the necessary one and add it into your config: - Install via Composer
[!NOTE] If you don't use Composer copy this file here
/wp-content/mu-plugins/
https://gist.github.com/renakdup/36f4a8474d0cb13ecadf0393811d5330
! There are no need additional steps anymore.
- Add the file
/wp-content/mu-plugins/colorize-adminpanel-for-environments.php
That's it!
Features
The right corner of admin-bar will be displayed current environment
Other colors
Development:
Staging:
Production:
Change colors
By the default we use next colors:
- production: red
- staging: orange
- development: blue
- local: default black
You can change it and add your new envs as well