Extra Chill Dev Tools
WordPress plugin providing development environment overrides for the Extra Chill Platform multisite network
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/extra-chill/extrachill-dev/archive/refs/heads/main.zipDevelopment environment overrides for the Extra Chill Platform.
Purpose
This plugin provides URL overrides for local development environments, allowing the platform's navigation system to work correctly with local subdirectory multisite setups.
Usage
- Customize the
$local_baseand$local_pathsarrays ininc/core/url-overrides.phpfor your local environment - Network activate the plugin
- The
ec_get_site_url()function will now return local URLs instead of production domains
Environment Detection
The plugin only activates overrides when WP_ENVIRONMENT_TYPE === 'local' is defined.
Configuration
URL Overrides
Modify the URL mappings in inc/core/url-overrides.php to match your local setup:
$local_base = 'https://your-local-domain.com';
$local_paths = array(
'main' => '/',
'community' => '/community/',
// ... etc
);
Stripe Test Keys
The plugin provides flexible Stripe test key configuration for local development:
Option 1: Local Config File (Recommended)
Create inc/core/stripe-config.php with your actual test keys:
$extrachill_dev_stripe_secret_key = 'sk_test_...';
$extrachill_dev_stripe_publishable_key = 'pk_test_...';
$extrachill_dev_stripe_webhook_secret = ''; // Optional
This file is gitignored and keeps secrets local.
Option 2: wp-config.php Constants
Define constants in your wp-config.php:
define('EXTRACHILL_DEV_STRIPE_SECRET_KEY', 'sk_test_...');
define('EXTRACHILL_DEV_STRIPE_PUBLISHABLE_KEY', 'pk_test_...');
Default: Placeholders If neither option is used, placeholder keys are provided for basic functionality (won't work for actual Stripe testing).
Turnstile Bypass
The Turnstile verification is automatically bypassed in local environments.