Changeset 3424011
- Timestamp:
- 12/19/2025 11:42:56 PM (3 months ago)
- Location:
- dont-mess-up-prod
- Files:
-
- 2 edited
-
tags/0.9.1/readme.txt (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dont-mess-up-prod/tags/0.9.1/readme.txt
r3423963 r3424011 15 15 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 😅 16 16 17 [Active development is on Github](https://github.com/davekellam/dont-mess-up-prod) 18 17 19 == Installation == 18 20 19 **Automatic Installation:** 21 The plugin can be installed via the search interface, manually or via composer. 20 22 21 1. Go to Plugins > Add New in your WordPress admin 22 2. Search for "Don't Mess Up Prod" 23 3. Click "Install Now" and then "Activate" 23 Right now, there is no admin UI. To customize colors or configure urls, you need to add filters via code (`functions.php` or a mu-plugin). See the FAQ for examples. 24 24 25 **Manual Installation:**26 27 1. Upload the plugin files to `/wp-content/plugins/dont-mess-up-prod/`28 2. Activate the plugin through the 'Plugins' screen in WordPress29 25 30 26 == Frequently Asked Questions == … … 34 30 The plugin detects your environment automatically in two ways: 35 31 36 1. **URL Matching** – Configure environment URLs using the `dmup_environment_urls` filter (see Configuration below)32 1. **URL Matching** – Configure environment URLs using the `dmup_environment_urls` filter 37 33 2. **WP_ENVIRONMENT_TYPE** – Set this constant in your `wp-config.php`: 38 34 … … 101 97 = 0.9.1 = 102 98 * Initial wordpress.org release 103 104 = 0.9.0 =105 * Refactored to use external stylesheet with CSS variables and enqueue system106 * Added CSS custom property support107 108 = 0.8.1 =109 * Added WordPress Playground blueprints for live demos110 111 = 0.8.0 =112 * Color-coded environment indicators113 * Environment switcher menu114 * Customizable via WordPress filters115 * Role-based and user-based visibility controls116 117 == Upgrade Notice ==118 119 = 0.9.1 =120 WordPress.org deployment automation and updated Playground blueprints.121 122 = 0.9.0 =123 Added stylesheet instead of inline css124 125 == Configuration ==126 127 Add filters via `functions.php` or a mu-plugin128 129 `130 <?php131 /**132 * Plugin Name: Don't Mess Up Prod Configuration133 */134 135 // Set minimum capability136 add_filter( 'dmup_minimum_capability', function() {137 return 'publish_posts';138 } );139 140 // Add specific allowed users141 add_filter( 'dmup_allowed_users', function( $users ) {142 return array_merge( $users, [143 'developer-name',144 'content-manager-name',145 ] );146 } );147 148 // Configure environment URLs149 add_filter( 'dmup_environment_urls', function() {150 return [151 'local' => 'http://yourproject.local',152 'development' => 'https://dev.yourproject.com',153 'staging' => 'https://staging.yourproject.com',154 'production' => 'https://yourproject.com',155 ];156 } );157 158 // Customize colors159 add_filter( 'dmup_environment_colors', function() {160 return [161 'local' => '#6c757d', // grey162 'development' => '#6f42c1', // purple163 'staging' => '#28a745', // green164 'production' => '#dc3545', // red165 ];166 } );167 ` -
dont-mess-up-prod/trunk/readme.txt
r3423963 r3424011 15 15 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 😅 16 16 17 [Active development is on Github](https://github.com/davekellam/dont-mess-up-prod) 18 17 19 == Installation == 18 20 19 **Automatic Installation:** 21 The plugin can be installed via the search interface, manually or via composer. 20 22 21 1. Go to Plugins > Add New in your WordPress admin 22 2. Search for "Don't Mess Up Prod" 23 3. Click "Install Now" and then "Activate" 23 Right now, there is no admin UI. To customize colors or configure urls, you need to add filters via code (`functions.php` or a mu-plugin). See the FAQ for examples. 24 24 25 **Manual Installation:**26 27 1. Upload the plugin files to `/wp-content/plugins/dont-mess-up-prod/`28 2. Activate the plugin through the 'Plugins' screen in WordPress29 25 30 26 == Frequently Asked Questions == … … 34 30 The plugin detects your environment automatically in two ways: 35 31 36 1. **URL Matching** – Configure environment URLs using the `dmup_environment_urls` filter (see Configuration below)32 1. **URL Matching** – Configure environment URLs using the `dmup_environment_urls` filter 37 33 2. **WP_ENVIRONMENT_TYPE** – Set this constant in your `wp-config.php`: 38 34 … … 101 97 = 0.9.1 = 102 98 * Initial wordpress.org release 103 104 = 0.9.0 =105 * Refactored to use external stylesheet with CSS variables and enqueue system106 * Added CSS custom property support107 108 = 0.8.1 =109 * Added WordPress Playground blueprints for live demos110 111 = 0.8.0 =112 * Color-coded environment indicators113 * Environment switcher menu114 * Customizable via WordPress filters115 * Role-based and user-based visibility controls116 117 == Upgrade Notice ==118 119 = 0.9.1 =120 WordPress.org deployment automation and updated Playground blueprints.121 122 = 0.9.0 =123 Added stylesheet instead of inline css124 125 == Configuration ==126 127 Add filters via `functions.php` or a mu-plugin128 129 `130 <?php131 /**132 * Plugin Name: Don't Mess Up Prod Configuration133 */134 135 // Set minimum capability136 add_filter( 'dmup_minimum_capability', function() {137 return 'publish_posts';138 } );139 140 // Add specific allowed users141 add_filter( 'dmup_allowed_users', function( $users ) {142 return array_merge( $users, [143 'developer-name',144 'content-manager-name',145 ] );146 } );147 148 // Configure environment URLs149 add_filter( 'dmup_environment_urls', function() {150 return [151 'local' => 'http://yourproject.local',152 'development' => 'https://dev.yourproject.com',153 'staging' => 'https://staging.yourproject.com',154 'production' => 'https://yourproject.com',155 ];156 } );157 158 // Customize colors159 add_filter( 'dmup_environment_colors', function() {160 return [161 'local' => '#6c757d', // grey162 'development' => '#6f42c1', // purple163 'staging' => '#28a745', // green164 'production' => '#dc3545', // red165 ];166 } );167 `
Note: See TracChangeset
for help on using the changeset viewer.