PHPackages                             renakdup/colorize-wp-adminpanel-for-environments - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. renakdup/colorize-wp-adminpanel-for-environments

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

renakdup/colorize-wp-adminpanel-for-environments
================================================

WordPress script to colorize admin-bar for different environments. Developers, Content Managers, and others will never confuse the environment where they work.

1.0.2(2y ago)28.1k↓30.8%[1 issues](https://github.com/renakdup/colorize-wp-adminpanel-for-environments/issues)MITPHPPHP &gt;=7.3.0

Since Mar 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/renakdup/colorize-wp-adminpanel-for-environments)[ Packagist](https://packagist.org/packages/renakdup/colorize-wp-adminpanel-for-environments)[ RSS](/packages/renakdup-colorize-wp-adminpanel-for-environments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Colorize WordPress admin panel for environments
===============================================

[](#colorize-wordpress-admin-panel-for-environments)

[![Total Downloads](https://camo.githubusercontent.com/6b6482eb7133c5da562bbec2fda484b6172858cc2d888e7cb3e89979f6bad4c9/68747470733a2f2f706f7365722e707567782e6f72672f72656e616b6475702f636f6c6f72697a652d77702d61646d696e70616e656c2d666f722d656e7669726f6e6d656e74732f646f776e6c6f616473)](https://packagist.org/packages/renakdup/colorize-wp-adminpanel-for-environments) [![PHP Version Require](https://camo.githubusercontent.com/41cc42065e7a57ffa135f645af9c8b3c221c7b9f1bff7f14e8ebe88f319ebf0f/68747470733a2f2f706f7365722e707567782e6f72672f72656e616b6475702f636f6c6f72697a652d77702d61646d696e70616e656c2d666f722d656e7669726f6e6d656e74732f726571756972652f706870)](https://packagist.org/packages/renakdup/colorize-wp-adminpanel-for-environments) [![Latest Stable Version](https://camo.githubusercontent.com/9c01c82bbed412a64d6e0bce3f5545ddf8025b2b81db42ad7f231bbae05a5f13/68747470733a2f2f706f7365722e707567782e6f72672f72656e616b6475702f636f6c6f72697a652d77702d61646d696e70616e656c2d666f722d656e7669726f6e6d656e74732f76)](https://packagist.org/packages/renakdup/colorize-wp-adminpanel-for-environments) [![License](https://camo.githubusercontent.com/71f0b4af10159e51e24445599e674050fda9c75b812f9945b5a487f3a96d1bcd/68747470733a2f2f706f7365722e707567782e6f72672f72656e616b6475702f636f6c6f72697a652d77702d61646d696e70616e656c2d666f722d656e7669726f6e6d656e74732f6c6963656e7365)](https://packagist.org/packages/renakdup/colorize-wp-adminpanel-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.

[![development.png](./doc/img/production.png)](./doc/img/production.png)

[Read more in the article](https://wp-yoda.com/en/wordpress/color-highlighting-of-the-wordpress-admin-panel-for-different-environments/)

Installation
------------

[](#installation)

1. Specify your current environment.
    On each environment (local, development, qa, stage, production), you will need to add the `WP_ENVIRONMENT_TYPE`constant with its value to `wp-config.php`.
    Choose the necessary one and add it into your config: ```
    define( 'WP_ENVIRONMENT_TYPE', 'local' );
    define( 'WP_ENVIRONMENT_TYPE', 'development' );
    define( 'WP_ENVIRONMENT_TYPE', 'staging' );
    define( 'WP_ENVIRONMENT_TYPE', 'production' );
    ```
2. Install via Composer ```
    composer require renakdup/colorize-wp-adminpanel-for-environments
    ```

Note

If you don't use Composer copy this file here `/wp-content/mu-plugins/`
! There are no need additional steps anymore.

3. Add the file `/wp-content/mu-plugins/colorize-adminpanel-for-environments.php`

```
