Download the PHP package davekellam/dont-mess-up-prod without Composer
On this page you can find all versions of the php package davekellam/dont-mess-up-prod. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davekellam/dont-mess-up-prod
More information about davekellam/dont-mess-up-prod
Files in davekellam/dont-mess-up-prod
Package dont-mess-up-prod
Short Description A WordPress plugin to indicate which environment you're currently using in the admin bar
License GPL-2.0-or-later
Homepage https://github.com/davekellam/dont-mess-up-prod
Informations about the package dont-mess-up-prod
Don't Mess Up Prod
This plugin displays a colored environment indicator in the WordPress admin bar to help developers and content managers identify which environment they're working in.
See a live preview on Playground.
Installation
Manual
- Upload the plugin files to
/wp-content/plugins/dont-mess-up-prod/ - Activate the plugin through the "Plugins" screen in WordPress
- Configure the plugin via the Settings → Don’t Mess Up Prod screen (or filters)
Composer
Environment Detection
The plugin detects the current environment using this priority order:
- URL matching – Compares the current site URL against the configured environment URLs. This list will also be used to generate a list of links that appears on hover in the admin bar.
wp_get_environment_type()– Which defaults toproductionand can be set via php constant:
The indicator is visible to users who either meet the minimum capability (defaults to publish_posts, filterable via dmup_minimum_capability) or whose username appears in the allowed users filter. This keeps visibility limited to the folks who need the context.
Configuration
The plugin can be configured using the WordPress admin screen or using filters.
Admin Settings
Go to Settings → Don’t Mess Up Prod to configure:
- Colors for each environment (local, development, staging, production)
- URLs for each environment (used for detection and quick links)
Settings are saved per environment, and defaults are provided out of the box.
Example Configuration (mu-plugin)
Create a file /wp-content/mu-plugins/dmup-config.php:
License
GPL-2.0-or-later