Development environment overrides for the Extra Chill Platform.
This plugin provides URL overrides for local development environments, allowing the platform's navigation system to work correctly with local subdirectory multisite setups.
- 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
The plugin only activates overrides when WP_ENVIRONMENT_TYPE === 'local' is defined.
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
);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 = ''; // OptionalThis 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).
The Turnstile verification is automatically bypassed in local environments.