{"id":174101,"date":"2023-05-05T02:30:26","date_gmt":"2023-05-05T02:30:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/environment-debug-admin-toolbar\/"},"modified":"2026-03-16T21:51:08","modified_gmt":"2026-03-16T21:51:08","slug":"environment-debug-admin-toolbar","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/environment-debug-admin-toolbar\/","author":20951529,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.0","stable_tag":"1.4.0","tested":"7.0","requires":"5.5","requires_php":"7.4","requires_plugins":null,"header_name":"Environment & Debug Bar","header_author":"Medium Rare","header_description":"Display your environment and debug info in the toolbar.","assets_banners_color":"4d4d4d","last_updated":"2026-03-16 21:51:08","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/mediumrare.dev\/","rating":5,"author_block_rating":0,"active_installs":40,"downloads":3441,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"mediumraredev","date":"2023-05-06 01:12:21"},"1.1.0":{"tag":"1.1.0","author":"mediumraredev","date":"2023-05-08 02:06:47"},"1.1.1":{"tag":"1.1.1","author":"mediumraredev","date":"2023-05-08 02:33:52"},"1.2.0":{"tag":"1.2.0","author":"mediumraredev","date":"2023-05-12 20:06:25"},"1.2.1":{"tag":"1.2.1","author":"mediumraredev","date":"2023-07-05 09:43:01"},"1.3.0":{"tag":"1.3.0","author":"mediumraredev","date":"2023-07-14 17:31:03"},"1.3.1":{"tag":"1.3.1","author":"mediumraredev","date":"2024-04-02 22:14:57"},"1.3.2":{"tag":"1.3.2","author":"mediumraredev","date":"2024-05-07 21:45:49"},"1.3.3":{"tag":"1.3.3","author":"mediumraredev","date":"2025-11-28 02:15:58"},"1.4.0":{"tag":"1.4.0","author":"mediumraredev","date":"2026-03-16 21:51:08"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2908724,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2908724,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2938819,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2938819,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.3.3","1.4.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2909192,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2938819,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2909192,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2909192,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2909192,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2909192,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2909192,"resolution":"7","location":"assets","locale":""}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,19987,7318,23063,19979],"plugin_category":[59],"plugin_contributors":[220256,220255],"plugin_business_model":[],"class_list":["post-174101","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-env","plugin_tags-environment","plugin_tags-production","plugin_tags-staging","plugin_category-utilities-and-tools","plugin_contributors-brugman","plugin_contributors-mediumraredev","plugin_committers-brugman","plugin_committers-mediumraredev"],"banners":{"banner":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/banner-772x250.png?rev=2938819","banner_2x":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/banner-1544x500.png?rev=2938819","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/icon-128x128.png?rev=2908724","icon_2x":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/icon-256x256.png?rev=2908724","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/screenshot-1.png?rev=2909192","caption":""},{"src":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/screenshot-2.png?rev=2938819","caption":""},{"src":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/screenshot-3.png?rev=2909192","caption":""},{"src":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/screenshot-4.png?rev=2909192","caption":""},{"src":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/screenshot-5.png?rev=2909192","caption":""},{"src":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/screenshot-6.png?rev=2909192","caption":""},{"src":"https:\/\/ps.w.org\/environment-debug-admin-toolbar\/assets\/screenshot-7.png?rev=2909192","caption":""}],"raw_content":"<!--section=description-->\n<p>This plugin will tell you what environment type you are on, and what the debug settings are.<\/p>\n\n<p>If you have only one version of your site this plugin may not be useful to you.<\/p>\n\n<p>Make sure every version of your site has its <em>ENV<\/em> defined in wp-config.php. We support both the new official WP_ENVIRONMENT_TYPE constant, and the community classic WP_ENV.<\/p>\n\n<pre><code>define( 'WP_ENVIRONMENT_TYPE', 'production' );\n<\/code><\/pre>\n\n<h4>Medium Rare<\/h4>\n\n<p>We hope you like this Medium Rare plugin. We take a lot of pride in our work, and try to make it the absolute best we can.<\/p>\n\n<p>This plugin is fully free, and will never have a pro version. A small gift, from us, to you.<\/p>\n\n<p>If you're interested in our other plugins, and future plugins, we invite you to visit our website at <a href=\"https:\/\/mediumrare.dev\/\">mediumrare.dev<\/a>. Our newsletter is the best way to never miss a Medium Rare plugin launch.<\/p>\n\n<h4>Contribute<\/h4>\n\n<p>If you want to contribute, development takes place on <a href=\"https:\/\/github.com\/Brugman\/environment-debug-admin-toolbar\">GitHub<\/a>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20users%20see%20the%20toolbar%3F\"><h3>What users see the toolbar?<\/h3><\/dt>\n<dd><p>By default, only <strong>Administrators<\/strong> see the bar. You can change who sees the bar with the following snippet. This example enables the bar for <strong>Editors<\/strong> as well:<\/p>\n\n<pre><code>add_filter( 'edt_capability_check', function ( $capability ) {\n    return 'edit_pages';\n});\n<\/code><\/pre><\/dd>\n<dt id=\"what%20are%20environment%20types%3F\"><h3>What are environment types?<\/h3><\/dt>\n<dd><p>Instead of displaying the exact environment you've set, we show types. A type is a group of environments that roughly have the same purpose. Like local, dev, develop and development.<\/p><\/dd>\n<dt id=\"can%20you%20support%20another%20environment%3F\"><h3>Can you support another environment?<\/h3><\/dt>\n<dd><p>If you've found a common environment that we do not yet recognize as part of a type, please let us know and we'll gladly add it.<\/p>\n\n<p>If you have a rare, custom, or localized environment name, we won't be adding those. However, you can add support for them yourself, with these snippets:<\/p>\n\n<pre><code>add_filter( 'edt_env_development', function ( $environments ) {\n    $environments[] = 'daring_development';\n    return $environments;\n});\n\nadd_filter( 'edt_env_staging', function ( $environments ) {\n    $environments[] = 'strange_staging';\n    return $environments;\n});\n\nadd_filter( 'edt_env_production', function ( $environments ) {\n    $environments[] = 'precious_production';\n    return $environments;\n});\n<\/code><\/pre>\n\n<p>Please make sure the environment names are lowercased.<\/p><\/dd>\n<dt id=\"can%20you%20support%20more%20types%3F\"><h3>Can you support more types?<\/h3><\/dt>\n<dd><p>Perhaps, if you can convince us. Please create a GitHub issue, so we can discuss your use-case.<\/p><\/dd>\n<dt id=\"can%20i%20show%20the%20toolbar%20on%20the%20frontend%20as%20well%3F\"><h3>Can I show the toolbar on the frontend as well?<\/h3><\/dt>\n<dd><p>You can, with the snippet below.<\/p>\n\n<p>Keep in mind that if you have a site where the end users are logged in, and see the toolbar on the frontend, you probably don't want to bother them by showing the environment info.<\/p>\n\n<pre><code>add_filter( 'edt_show_on_frontend', '__return_true' );\n<\/code><\/pre><\/dd>\n<dt id=\"can%20i%20set%20my%20own%20colors%3F\"><h3>Can I set my own colors?<\/h3><\/dt>\n<dd><p>Yeah. Like with all CSS, you can override it:<\/p>\n\n<pre><code>#wp-admin-bar-edt-group .env-type-1 { background-color: #f09; }\n<\/code><\/pre><\/dd>\n<dt id=\"can%20i%20disable%20all%20styles%3F\"><h3>Can I disable all styles?<\/h3><\/dt>\n<dd><p>Sure. You can disable our CSS with this snippet:<\/p>\n\n<pre><code>add_action( 'admin_enqueue_scripts', function () {\n    wp_dequeue_style( 'edt-backend-css' );\n});\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Added support for Troy distribution.<\/li>\n<\/ul>\n\n<h4>1.3.3<\/h4>\n\n<ul>\n<li>Checked compatibility with WP 6.6.<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>Fixed wrong variable use for getenv('WP_ENV') users.<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Checked compatibility with WP 6.4.<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Added WP_DEVELOPMENT_MODE.<\/li>\n<li>Updated styling.<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Checked compatibility with WP 6.3.<\/li>\n<li>Fixed showing an incomplete title.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added bar to the frontend behind a filter.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Fixed the name of a filter.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Updated bar colors.<\/li>\n<li>Added PHP version.<\/li>\n<li>Added actual environment as title to the env type.<\/li>\n<li>Added actual log file as title to WP_DEBUG_LOG.<\/li>\n<li>Added filters to set environments to types.<\/li>\n<li>Added a filter for who sees the bar.<\/li>\n<li>Made plugin compatible with WP 5.5.<\/li>\n<li>Made plugin compatible with PHP 7.4.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Display your environment and debug info in the toolbar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/174101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=174101"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mediumraredev"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=174101"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=174101"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=174101"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=174101"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=174101"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=174101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}