Skip to content

WordPress plugin providing development environment overrides for the Extra Chill Platform multisite network

Notifications You must be signed in to change notification settings

Extra-Chill/extrachill-dev

Repository files navigation

Extra Chill Dev Tools

Development 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

  1. Customize the $local_base and $local_paths arrays in inc/core/url-overrides.php for your local environment
  2. Network activate the plugin
  3. 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.

About

WordPress plugin providing development environment overrides for the Extra Chill Platform multisite network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages