Plugin Directory

Changeset 3424011


Ignore:
Timestamp:
12/19/2025 11:42:56 PM (3 months ago)
Author:
eightface
Message:

Updating readme/assets from GitHub

Location:
dont-mess-up-prod
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dont-mess-up-prod/tags/0.9.1/readme.txt

    r3423963 r3424011  
    1515Don'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 😅
    1616
     17[Active development is on Github](https://github.com/davekellam/dont-mess-up-prod)
     18
    1719== Installation ==
    1820
    19 **Automatic Installation:**
     21The plugin can be installed via the search interface, manually or via composer.
    2022
    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"
     23Right 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.
    2424
    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 WordPress
    2925
    3026== Frequently Asked Questions ==
     
    3430The plugin detects your environment automatically in two ways:
    3531
    36 1. **URL Matching** – Configure environment URLs using the `dmup_environment_urls` filter (see Configuration below)
     321. **URL Matching** – Configure environment URLs using the `dmup_environment_urls` filter
    37332. **WP_ENVIRONMENT_TYPE** – Set this constant in your `wp-config.php`:
    3834
     
    10197= 0.9.1 =
    10298* Initial wordpress.org release
    103 
    104 = 0.9.0 =
    105 * Refactored to use external stylesheet with CSS variables and enqueue system
    106 * Added CSS custom property support
    107 
    108 = 0.8.1 =
    109 * Added WordPress Playground blueprints for live demos
    110 
    111 = 0.8.0 =
    112 * Color-coded environment indicators
    113 * Environment switcher menu
    114 * Customizable via WordPress filters
    115 * Role-based and user-based visibility controls
    116 
    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 css
    124 
    125 == Configuration ==
    126 
    127 Add filters via `functions.php` or a mu-plugin
    128 
    129 `
    130 <?php
    131 /**
    132  * Plugin Name: Don't Mess Up Prod Configuration
    133  */
    134 
    135 // Set minimum capability
    136 add_filter( 'dmup_minimum_capability', function() {
    137     return 'publish_posts';
    138 } );
    139 
    140 // Add specific allowed users
    141 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 URLs
    149 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 colors
    159 add_filter( 'dmup_environment_colors', function() {
    160     return [
    161         'local'       => '#6c757d', // grey
    162         'development' => '#6f42c1', // purple
    163         'staging'     => '#28a745', // green
    164         'production'  => '#dc3545', // red
    165     ];
    166 } );
    167 `
  • dont-mess-up-prod/trunk/readme.txt

    r3423963 r3424011  
    1515Don'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 😅
    1616
     17[Active development is on Github](https://github.com/davekellam/dont-mess-up-prod)
     18
    1719== Installation ==
    1820
    19 **Automatic Installation:**
     21The plugin can be installed via the search interface, manually or via composer.
    2022
    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"
     23Right 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.
    2424
    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 WordPress
    2925
    3026== Frequently Asked Questions ==
     
    3430The plugin detects your environment automatically in two ways:
    3531
    36 1. **URL Matching** – Configure environment URLs using the `dmup_environment_urls` filter (see Configuration below)
     321. **URL Matching** – Configure environment URLs using the `dmup_environment_urls` filter
    37332. **WP_ENVIRONMENT_TYPE** – Set this constant in your `wp-config.php`:
    3834
     
    10197= 0.9.1 =
    10298* Initial wordpress.org release
    103 
    104 = 0.9.0 =
    105 * Refactored to use external stylesheet with CSS variables and enqueue system
    106 * Added CSS custom property support
    107 
    108 = 0.8.1 =
    109 * Added WordPress Playground blueprints for live demos
    110 
    111 = 0.8.0 =
    112 * Color-coded environment indicators
    113 * Environment switcher menu
    114 * Customizable via WordPress filters
    115 * Role-based and user-based visibility controls
    116 
    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 css
    124 
    125 == Configuration ==
    126 
    127 Add filters via `functions.php` or a mu-plugin
    128 
    129 `
    130 <?php
    131 /**
    132  * Plugin Name: Don't Mess Up Prod Configuration
    133  */
    134 
    135 // Set minimum capability
    136 add_filter( 'dmup_minimum_capability', function() {
    137     return 'publish_posts';
    138 } );
    139 
    140 // Add specific allowed users
    141 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 URLs
    149 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 colors
    159 add_filter( 'dmup_environment_colors', function() {
    160     return [
    161         'local'       => '#6c757d', // grey
    162         'development' => '#6f42c1', // purple
    163         'staging'     => '#28a745', // green
    164         'production'  => '#dc3545', // red
    165     ];
    166 } );
    167 `
Note: See TracChangeset for help on using the changeset viewer.