{"id":267606,"date":"2025-12-19T18:56:59","date_gmt":"2025-12-19T18:56:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/dont-mess-up-prod\/"},"modified":"2026-01-28T21:10:20","modified_gmt":"2026-01-28T21:10:20","slug":"dont-mess-up-prod","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/dont-mess-up-prod\/","author":13736,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.1","tested":"6.9.4","requires":"6.7","requires_php":"8.0","requires_plugins":null,"header_name":"Don't Mess Up Prod","header_author":"Dave Kellam","header_description":"Displays the current environment in the admin bar","assets_banners_color":"","last_updated":"2026-01-28 21:10:20","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/davekellam\/dont-mess-up-prod","header_author_uri":"https:\/\/davekellam.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":237,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.9.1":{"tag":"0.9.1","author":"eightface","date":"2025-12-19 23:42:56"},"1.0.0":{"tag":"1.0.0","author":"eightface","date":"2026-01-21 22:52:00"},"1.0.1":{"tag":"1.0.1","author":"eightface","date":"2026-01-28 21:10:20"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3423963,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3423963,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3449034,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"landingPage\":\"\\\/wp-admin\\\/options-general.php?page=dont-mess-up-prod\",\"steps\":[{\"step\":\"login\",\"username\":\"admin\",\"password\":\"password\"},{\"step\":\"installPlugin\",\"options\":{\"activate\":true},\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"dont-mess-up-prod\"}},{\"step\":\"defineWpConfigConsts\",\"consts\":{\"WP_ENVIRONMENT_TYPE\":\"production\"}},{\"step\":\"writeFile\",\"path\":\"\\\/wordpress\\\/wp-content\\\/mu-plugins\\\/dmup-environment-urls.php\",\"data\":\"<?php\\n\\\/**\\n * Plugin Name: DMUP Environment URLs\\n * Description: Sets custom environment URLs for Don't Mess Up Prod\\n *\\\/\\n\\nadd_filter( 'dmup_environment_urls', function( $urls ) {\\n    return [\\n        'local'       => 'http:\\\/\\\/example.local',\\n        'development' => 'https:\\\/\\\/dev.example.com',\\n        'staging'     => 'https:\\\/\\\/staging.example.com',\\n        'production'  => 'https:\\\/\\\/example.com',\\n    ];\\n} );\\n\"}]}"}},"all_blocks":[],"tagged_versions":["0.9.1","1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3423941,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3423941,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3423941,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3423941,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3423941,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3447389,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"Production environment indicator (red) in the admin bar","2":"Staging environment indicator (green) with environment switcher menu","3":"Development environment indicator (purple)","4":"Local environment indicator (grey)","5":"Staging environment indicator with environment switcher menu","6":"Admin settings screen"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1339,94,734,7318],"plugin_category":[59],"plugin_contributors":[78493],"plugin_business_model":[],"class_list":["post-267606","plugin","type-plugin","status-publish","hentry","plugin_tags-admin-bar","plugin_tags-debug","plugin_tags-development","plugin_tags-environment","plugin_category-utilities-and-tools","plugin_contributors-eightface","plugin_committers-eightface"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/dont-mess-up-prod\/assets\/icon-128x128.png?rev=3423963","icon_2x":"https:\/\/ps.w.org\/dont-mess-up-prod\/assets\/icon-256x256.png?rev=3423963","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/dont-mess-up-prod\/assets\/screenshot-1.png?rev=3423941","caption":"Production environment indicator (red) in the admin bar"},{"src":"https:\/\/ps.w.org\/dont-mess-up-prod\/assets\/screenshot-2.png?rev=3423941","caption":"Staging environment indicator (green) with environment switcher menu"},{"src":"https:\/\/ps.w.org\/dont-mess-up-prod\/assets\/screenshot-3.png?rev=3423941","caption":"Development environment indicator (purple)"},{"src":"https:\/\/ps.w.org\/dont-mess-up-prod\/assets\/screenshot-4.png?rev=3423941","caption":"Local environment indicator (grey)"},{"src":"https:\/\/ps.w.org\/dont-mess-up-prod\/assets\/screenshot-5.png?rev=3423941","caption":"Staging environment indicator with environment switcher menu"},{"src":"https:\/\/ps.w.org\/dont-mess-up-prod\/assets\/screenshot-6.png?rev=3447389","caption":"Admin settings screen"}],"raw_content":"<!--section=description-->\n<p>Don't Mess Up Prod helps developers and content managers quickly identify which environment they're working in by displaying a colored indicator in the WordPress admin bar. Hopefully this prevents messing up production \ud83d\ude05<\/p>\n\n<p><a href=\"https:\/\/github.com\/davekellam\/dont-mess-up-prod\">Active development is on Github<\/a><\/p>\n\n<!--section=installation-->\n<p>The plugin can be installed via the search interface, manually or via composer.<\/p>\n\n<p>You can configure colors and environment URLs in <strong>Settings \u2192 Don't Mess Up Prod<\/strong>. Filters are still supported for advanced configuration or for overriding the admin settings.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20configure%20which%20environment%20i%27m%20in%3F\"><h3>How do I configure which environment I'm in?<\/h3><\/dt>\n<dd><p>The plugin detects your environment automatically in two ways:<\/p>\n\n<ol>\n<li><strong>URL Matching<\/strong> \u2013 Configure environment URLs in <strong>Settings \u2192 Don't Mess Up Prod<\/strong>, or using the <code>dmup_environment_urls<\/code> filter<\/li>\n<li><p><strong>WP_ENVIRONMENT_TYPE<\/strong> \u2013 Set this constant in your <code>wp-config.php<\/code>:<\/p>\n\n<p>define( 'WP_ENVIRONMENT_TYPE', 'staging' );<\/p><\/li>\n<\/ol><\/dd>\n<dt id=\"how%20do%20i%20customize%20the%20colors%3F\"><h3>How do I customize the colors?<\/h3><\/dt>\n<dd><p>Use <strong>Settings \u2192 Don't Mess Up Prod<\/strong> to set colors, or add a filter in your theme's <code>functions.php<\/code> or a mu-plugin:<\/p>\n\n<pre><code>add_filter( 'dmup_environment_colors', function( $colors ) {\n    return [\n        'local'       =&gt; '#17a2b8', \/\/ blue\n        'development' =&gt; '#6f42c1', \/\/ purple\n        'staging'     =&gt; '#ffc107', \/\/ yellow\n        'production'  =&gt; '#dc3545', \/\/ red\n    ];\n} );\n<\/code><\/pre><\/dd>\n<dt id=\"how%20do%20i%20control%20who%20can%20see%20the%20indicator%3F\"><h3>How do I control who can see the indicator?<\/h3><\/dt>\n<dd><p>By default, users with the <code>publish_posts<\/code> capability can see it. Customize this:<\/p>\n\n<p><strong>Role-based access:<\/strong><\/p>\n\n<pre><code>add_filter( 'dmup_minimum_capability', function() {\n    return 'edit_posts'; \/\/ or 'manage_options', etc.\n} );\n<\/code><\/pre>\n\n<p><strong>Specific users only:<\/strong><\/p>\n\n<pre><code>add_filter( 'dmup_allowed_users', function( $users ) {\n    return array_merge( $users, [ 'johndoe', 'janedoe' ] );\n} );\n<\/code><\/pre><\/dd>\n<dt id=\"how%20do%20i%20add%20environment%20urls%20for%20quick%20switching%3F\"><h3>How do I add environment URLs for quick switching?<\/h3><\/dt>\n<dd><p>Configure environment URLs in <strong>Settings \u2192 Don't Mess Up Prod<\/strong> to show a menu with links to other environments, or use the filter:<\/p>\n\n<pre><code>add_filter( 'dmup_environment_urls', function() {\n    return [\n        'local'       =&gt; 'http:\/\/yourproject.local',\n        'development' =&gt; 'https:\/\/dev.yourproject.com',\n        'staging'     =&gt; 'https:\/\/staging.yourproject.com',\n        'production'  =&gt; 'https:\/\/yourproject.com',\n    ];\n} );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Add settings link on plugins list page<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Adding admin settings page<\/li>\n<\/ul>\n\n<h4>0.9.1<\/h4>\n\n<ul>\n<li>Initial wordpress.org release<\/li>\n<\/ul>","raw_excerpt":"Displays a colored environment indicator in the admin bar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/267606","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=267606"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/eightface"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=267606"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=267606"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=267606"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=267606"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=267606"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=267606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}