Title: Don&#039;t Mess Up Prod
Author: Dave Kellam
Published: <strong>December 19, 2025</strong>
Last modified: May 12, 2026

---

Search plugins

![](https://ps.w.org/dont-mess-up-prod/assets/icon-256x256.png?rev=3423963)

# Don't Mess Up Prod

 By [Dave Kellam](https://profiles.wordpress.org/eightface/)

[Download](https://downloads.wordpress.org/plugin/dont-mess-up-prod.1.0.1.zip)

[Live Preview](https://vec.wordpress.org/plugins/dont-mess-up-prod/?preview=1)

 * [Details](https://vec.wordpress.org/plugins/dont-mess-up-prod/#description)
 * [Reviews](https://vec.wordpress.org/plugins/dont-mess-up-prod/#reviews)
 *  [Installation](https://vec.wordpress.org/plugins/dont-mess-up-prod/#installation)
 * [Development](https://vec.wordpress.org/plugins/dont-mess-up-prod/#developers)

 [Support](https://wordpress.org/support/plugin/dont-mess-up-prod/)

## Description

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 😅

[Active development is on Github](https://github.com/davekellam/dont-mess-up-prod)

## Screenshots

[⌊Production environment indicator (red) in the admin bar⌉⌊Production environment
indicator (red) in the admin bar⌉[

Production environment indicator (red) in the admin bar

[⌊Staging environment indicator (green) with environment switcher menu⌉⌊Staging 
environment indicator (green) with environment switcher menu⌉[

Staging environment indicator (green) with environment switcher menu

[⌊Development environment indicator (purple)⌉⌊Development environment indicator (
purple)⌉[

Development environment indicator (purple)

[⌊Local environment indicator (grey)⌉⌊Local environment indicator (grey)⌉[

Local environment indicator (grey)

[⌊Staging environment indicator with environment switcher menu⌉⌊Staging environment
indicator with environment switcher menu⌉[

Staging environment indicator with environment switcher menu

[⌊Admin settings screen⌉⌊Admin settings screen⌉[

Admin settings screen

## Installation

The plugin can be installed via the search interface, manually or via composer.

You can configure colors and environment URLs in **Settings  Don’t Mess Up Prod**.
Filters are still supported for advanced configuration or for overriding the admin
settings.

## FAQ

### How do I configure which environment I’m in?

The plugin detects your environment automatically in two ways:

 1. **URL Matching** – Configure environment URLs in **Settings  Don’t Mess Up Prod**,
    or using the `dmup_environment_urls` filter
 2. **WP_ENVIRONMENT_TYPE** – Set this constant in your `wp-config.php`:
 3. define( ‘WP_ENVIRONMENT_TYPE’, ‘staging’ );

### How do I customize the colors?

Use **Settings  Don’t Mess Up Prod** to set colors, or add a filter in your theme’s`
functions.php` or a mu-plugin:

    ```
    add_filter( 'dmup_environment_colors', function( $colors ) {
        return [
            'local'       => '#17a2b8', // blue
            'development' => '#6f42c1', // purple
            'staging'     => '#ffc107', // yellow
            'production'  => '#dc3545', // red
        ];
    } );
    ```

### How do I control who can see the indicator?

By default, users with the `publish_posts` capability can see it. Customize this:

**Role-based access:**

    ```
    add_filter( 'dmup_minimum_capability', function() {
        return 'edit_posts'; // or 'manage_options', etc.
    } );
    ```

**Specific users only:**

    ```
    add_filter( 'dmup_allowed_users', function( $users ) {
        return array_merge( $users, [ 'johndoe', 'janedoe' ] );
    } );
    ```

### How do I add environment URLs for quick switching?

Configure environment URLs in **Settings  Don’t Mess Up Prod** to show a menu with
links to other environments, or use the filter:

    ```
    add_filter( 'dmup_environment_urls', function() {
        return [
            'local'       => 'http://yourproject.local',
            'development' => 'https://dev.yourproject.com',
            'staging'     => 'https://staging.yourproject.com',
            'production'  => 'https://yourproject.com',
        ];
    } );
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Don't Mess Up Prod” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Dave Kellam ](https://profiles.wordpress.org/eightface/)

[Translate “Don't Mess Up Prod” into your language.](https://translate.wordpress.org/projects/wp-plugins/dont-mess-up-prod)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dont-mess-up-prod/),
check out the [SVN repository](https://plugins.svn.wordpress.org/dont-mess-up-prod/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/dont-mess-up-prod/)
by [RSS](https://plugins.trac.wordpress.org/log/dont-mess-up-prod/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Add settings link on plugins list page

#### 1.0.0

 * Adding admin settings page

#### 0.9.1

 * Initial wordpress.org release

## Meta

 *  Version **1.0.1**
 *  Last updated **2 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.7 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 8.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/dont-mess-up-prod/)
 * Tags
 * [admin bar](https://vec.wordpress.org/plugins/tags/admin-bar/)[debug](https://vec.wordpress.org/plugins/tags/debug/)
   [development](https://vec.wordpress.org/plugins/tags/development/)[environment](https://vec.wordpress.org/plugins/tags/environment/)
 *  [Advanced View](https://vec.wordpress.org/plugins/dont-mess-up-prod/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/dont-mess-up-prod/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dont-mess-up-prod/reviews/)

## Contributors

 *   [ Dave Kellam ](https://profiles.wordpress.org/eightface/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dont-mess-up-prod/)