Inc
REST API
Overview Registers spawn/v1 REST endpoints for checkout, auth, customer accounts, credits, chat, and domain settings. Namespace spawn/v1 Constants NAMESPACE (spawn/v1)...
Admin
Overview Adds the Spawn admin menu, renders settings and customer list, and registers plugin options. Settings Registered options: spawn_stripe_price_starter spawn_stripe_price_pro...
Configuration
Overview Describes Spawn plugin options used by provisioning, billing, domains, and auth. Options spawn_stripe_prices (array) Stripe price IDs keyed by...
Database
Overview Provides CRUD operations for Spawn customers and stores provisioning, billing, and credit metadata in the wp_spawn_customers table. Table {$wpdb->prefix}spawn_customers...
Autoload
Overview Registers a PSR-style autoloader for Spawn classes and abilities. Behavior Loads classes in the Spawn namespace. Routes SpawnAbilities* to...
Blocks
Overview Registers Spawn Gutenberg blocks from build/blocks or blocks directories. Blocks domain-search tier-select checkout login dashboard account chat Methods init():...
Cleanup
Overview Deletes VPS and DNS resources after cancellation grace period and sends notification emails. Constants GRACE_PERIOD_DAYS (7) Hooks spawn_process_deletions (hourly)...
Config
Overview Defines tier pricing, VPS specs, and location rules. This class is the single source of truth for tier data....
Payment Helpers
Overview Provides Spawn-specific wrappers around Stripe Integration for credits, auto-refill, and subscription upgrades. Methods create_credit_checkout_session( array $params ): array|WP_Error handle_credit_purchase(...
Provisioner
Overview Triggers VPS provisioning jobs in Sweatpants and processes completion callbacks. Configuration spawn_sweatpants_url (default: http://127.0.0.1:8420) spawn_sweatpants_token Methods trigger(array $params): array|WP_Error...
Webhook
Overview Handles incoming webhooks for provisioning (Sweatpants) and Stripe events via the stripe-integration plugin. Routes POST /spawn/v1/webhook/provisioner Processes Sweatpants callbacks....
Cron
Overview Schedules domain renewal checks and auto-refill handling, including reminder emails and auto-renewal workflows. Hooks spawn_domain_renewal_check (daily) spawn_credits_auto_refill_needed spawn_auto_refill_success spawn_auto_refill_failed...