{"id":113753,"date":"2019-11-25T22:49:36","date_gmt":"2019-11-25T22:49:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/contextual-adminbar-color\/"},"modified":"2025-11-27T08:50:04","modified_gmt":"2025-11-27T08:50:04","slug":"contextual-adminbar-color","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/contextual-adminbar-color\/","author":8670591,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3.1","stable_tag":"0.3.1","tested":"6.9.4","requires":"5.4","requires_php":"5.6","requires_plugins":null,"header_name":"Contextual Adminbar Color","header_author":"whodunitagency, audrasjb","header_description":"Use custom admin bar colors to differentiate environments (staging, preprod, production)","assets_banners_color":"6c7386","last_updated":"2025-11-27 08:50:04","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/jeanbaptisteaudras.com\/en\/contextual-adminbar-color-wordpress","header_author_uri":"https:\/\/jeanbaptisteaudras.com","rating":5,"author_block_rating":4.5,"active_installs":500,"downloads":9506,"num_ratings":8,"support_threads":0,"support_threads_resolved":0,"author_block_count":2,"sections":["description","installation","faq","changelog"],"tags":{"0.2":{"tag":"0.2","author":"audrasjb","date":"2019-11-25 22:49:41"},"0.3":{"tag":"0.3","author":"audrasjb","date":"2020-01-17 21:02:40"},"0.3.1":{"tag":"0.3.1","author":"audrasjb","date":"2025-11-27 08:50:04"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":8},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2201208,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2201208,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2201208,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2201208,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2","0.3","0.3.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2200944,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2200944,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2200944,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Plugin settings screen.","2":"Use favicons to differentiate your browser tabs.","3":"Front-end rendering."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2761,1257,7318,240330,3792],"plugin_category":[],"plugin_contributors":[98271,129260],"plugin_business_model":[],"class_list":["post-113753","plugin","type-plugin","status-publish","hentry","plugin_tags-adminbar","plugin_tags-color","plugin_tags-environment","plugin_tags-preprod","plugin_tags-scheme","plugin_contributors-audrasjb","plugin_contributors-whodunitagency","plugin_committers-audrasjb"],"banners":{"banner":"https:\/\/ps.w.org\/contextual-adminbar-color\/assets\/banner-772x250.png?rev=2201208","banner_2x":"https:\/\/ps.w.org\/contextual-adminbar-color\/assets\/banner-1544x500.png?rev=2201208","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/contextual-adminbar-color\/assets\/icon-128x128.png?rev=2201208","icon_2x":"https:\/\/ps.w.org\/contextual-adminbar-color\/assets\/icon-256x256.png?rev=2201208","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/contextual-adminbar-color\/assets\/screenshot-1.png?rev=2200944","caption":"Plugin settings screen."},{"src":"https:\/\/ps.w.org\/contextual-adminbar-color\/assets\/screenshot-2.png?rev=2200944","caption":"Use favicons to differentiate your browser tabs."},{"src":"https:\/\/ps.w.org\/contextual-adminbar-color\/assets\/screenshot-3.png?rev=2200944","caption":"Front-end rendering."}],"raw_content":"<!--section=description-->\n<p>This plugins provides custom admin bar colors to differentiate environments (staging, preprod, production). It's really <strong>easy to use<\/strong> and <strong>developer-friendly<\/strong>.<\/p>\n\n<p>The plugin provides a settings screen which several options:<\/p>\n\n<ul>\n<li>choose between several color predefined schemes.<\/li>\n<li>use a favicon to better differentiate your environments in your browser\u2019s tabs.<\/li>\n<li>add a custom message in your admin bar, like \"Production website\", \"staging version\" or whatever your want.<\/li>\n<li>choose the user roles that will see the color scheme (other roles will see the default admin bar).<\/li>\n<\/ul>\n\n<p>It also offers few PHP constants you can use in your <code>wp-config.php<\/code> file (see Frequently Asked Questions below).<\/p>\n\n<p>Since WordPress Core will probably deprecate alternate admin color schemes in mid-term, this plugin is meant to be use by those who rely on colors to know is they are in staging, preproduction or production environment.<\/p>\n\n<p>Last but not least, all provided color schemes are accessibility-ready!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Activate the plugin.<\/li>\n<li>Good to Tools &gt; Adminbar settings to configure the plugin.<\/li>\n<li>Save your changes and enjoy :)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20to%20use%20the%20php%20constant%20in%20wp-config.php%3F'><h3>How to use the PHP constant in wp-config.php?<\/h3><\/dt>\n<dd><p>Use <code>CONTEXTUAL_ADMINBAR_COLOR<\/code> to force color scheme.\nAccepted values: <code>blue<\/code>, <code>red<\/code>, <code>green<\/code>, <code>purple<\/code>, <code>orange<\/code> and <code>darkgray<\/code>.\nExample: <code>define( 'CONTEXTUAL_ADMINBAR_COLOR', 'purple' );<\/code><\/p>\n\n<p>Use <code>CONTEXTUAL_ADMINBAR_MESSAGE<\/code> to force your custom admin bar message to display.\nAccepted values: any valid string.\nExample: <code>define( 'CONTEXTUAL_ADMINBAR_MESSAGE', 'This is the staging website' );<\/code><\/p>\n\n<ul>\n<li><p><code>CONTEXTUAL_ADMINBAR_FAVICON<\/code> to force a favicon.\nAccepted values: <code>0<\/code> (don\u2019t force a color based favicon) or <code>1<\/code> (force WordPress Admin to use the favicon that is related to your selected color scheme).\nExample: <code>define( 'CONTEXTUAL_ADMINBAR_FAVICON', 1 );<\/code><\/p><\/li>\n<li><p><code>CONTEXTUAL_ADMINBAR_SETTINGS<\/code> to remove the settings screen from WordPress Admin, and manage the plugin\u2019s settings only within the <code>wp-config.php<\/code> file.\nAccepted values: <code>0<\/code> (remove the settings screen) or <code>1<\/code> (keep it).\nExample: <code>define( 'CONTEXTUAL_ADMINBAR_SETTINGS', 0 )<\/code><\/p><\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.3.1<\/h4>\n\n<ul>\n<li>Adds option to switch back to default color scheme.<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Fixes security issues, thanks to the WordPress Plugin\/Security team.<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Plugin initial version, now on WordPress.org!<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Plugin initial version, only released on GitHub.<\/li>\n<\/ul>","raw_excerpt":"Use custom admin bar colors and favicons to differentiate your environments (staging\/prod)","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/113753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=113753"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/audrasjb"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=113753"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=113753"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=113753"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=113753"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=113753"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=113753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}