Different Admin Bar (Toolbar) Color for Different Environments

Use wp_get_environment_type() to get the current development environment.

  • standard black for Local development environment
  • blue for QA (testing) and for development
  • orange for staging
  • red for production.

To change the colors or names of environments, use the filter renakdup/adminpanel_env_color/colors.

To disable coloring for specific roles, use remove_filter().

--

Read more in the original article.