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....
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(...
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...