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)...
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...
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...
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....
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...
Google OAuth
Overview Implements Google OAuth login and account creation for Spawn customers. Constants GOOGLE_AUTH_URL GOOGLE_TOKEN_URL GOOGLE_USERINFO_URL Configuration spawn_google_client_id spawn_google_client_secret Methods is_configured():...
Name.com
Overview Wraps Name.com API operations for domain availability, renewal, and pricing. Configuration spawn_namecom_username spawn_namecom_token spawn_namecom_test_mode (boolean) Methods check_availability(string $domain): array|WP_Error...
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(...