Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/joseconti/hostforge-for-woocommerce/archive/refs/heads/main.zipModular hosting management platform for WooCommerce. Sell shared hosting, reseller, VPS, dedicated servers, domains, SSL certificates, and software licenses with automatic provisioning via cPanel and Plesk.
Description
HostForge transforms WooCommerce into a complete hosting management system. Each feature is implemented as an independent module that can be activated or deactivated from the admin panel without affecting the rest of the platform.
Key Features
- 7 WooCommerce Product Types: Shared Hosting, Reseller Hosting, VPS, Dedicated Server, Domain, SSL Certificate, Software License
- Server Manager: Connect and manage cPanel (WHM API) and Plesk servers with health monitoring
- Auto Provisioning: Automatic account creation, suspension, unsuspension, and termination on order/subscription events
- Support Desk: Full ticket system with departments, priorities, canned responses, knowledge base, and IMAP piping
- Domain Manager: Domain registration, transfer, and renewal via Namecheap API with DNS management
- Security: Brute force protection, IP management, fraud detection, CAPTCHA integration, audit logging
- Notifications: 11 WooCommerce email templates with merge tags for services, tickets, and domains
- Reports: Revenue charts, MRR tracking, service/ticket/domain statistics, CSV export
Architecture
- Modular: Each module activates/deactivates independently
- PHP 8.0+ with PSR-4 autoloading and type hints
- WordPress Coding Standards compliant
- WooCommerce native: Uses WC products, orders, subscriptions, and checkout
- HPOS compatible: High-Performance Order Storage support
- Action Scheduler: All scheduled tasks use WooCommerce Action Scheduler (no WP-Cron)
- No billing/invoicing: Users install their own billing plugin
Requirements
| Requirement | Minimum |
|---|---|
| PHP | 8.0 |
| WordPress | 6.0 |
| WooCommerce | 8.0 |
Subscription Plugins (one required for recurring products)
HostForge supports four subscription plugins via its adapter system:
- WooCommerce Subscriptions
- YITH WooCommerce Subscription
- Advanced Subscriptions for WooCommerce
- SUMO Subscriptions
Server Panels (for auto-provisioning)
- cPanel/WHM (API token authentication)
- Plesk (API key authentication)
Domain Registrars (for domain management)
- Namecheap (XML API with sandbox support)
Installation
- Upload the
hostforge-for-woocommercefolder to/wp-content/plugins/ - Activate the plugin through the Plugins menu in WordPress
- Go to HostForge > Settings to configure general options
- Go to HostForge > Modules to activate the modules you need
- Configure each module from its respective admin page
Module Configuration
Server Manager
- Go to HostForge > Servers > Add New
- Enter server hostname, select panel type (cPanel/Plesk)
- Provide API credentials (token for WHM, API key for Plesk)
- Test connection and save
- Optionally assign the server to a server group
Auto Provisioning
- Ensure at least one server is configured in Server Manager
- Go to HostForge > Automation Settings
- Configure auto-provisioning on order completion
- Set auto-suspend and auto-terminate schedules
- Create hosting products and assign server groups and packages
Support Desk
- Go to HostForge > Tickets to manage tickets
- Configure departments from HostForge > Departments
- Set up canned responses for common replies
- Manage knowledge base articles from HostForge > Knowledge Base
Domain Manager
- Go to HostForge > Registrar Settings and configure Namecheap credentials
- Import TLD pricing from HostForge > TLD Pricing
- Create domain products in WooCommerce
Security
- Go to HostForge > Security > Settings
- Configure brute force protection thresholds
- Set up IP allowlist/blocklist
- Enable CAPTCHA (Cloudflare Turnstile or Google reCAPTCHA)
- Configure fraud detection rules
Custom Providers and Adapters
HostForge is designed to be extensible. You can create custom:
- Panel Providers — Implement
HF_Panel_Providerinterface for new server panels - Domain Registrars — Implement
HF_Registrarinterface for new registrars - Subscription Adapters — Implement
HF_Subscription_Adapterinterface for new subscription plugins
See the Developer Guide for detailed instructions.
Hooks and Filters
HostForge provides extensive hooks for customization. See the Hooks Reference for the complete list.
Key Filters
hostforge_subscription_adapters— Register custom subscription adaptershostforge_panel_providers— Register custom panel providershostforge_registrars— Register custom domain registrarshostforge_active_modules— Modify active modules list
File Structure
hostforge-for-woocommerce/
hostforge-for-woocommerce.php Main plugin file
uninstall.php Data cleanup on uninstall
includes/ Core classes
admin/ Admin screens and settings
abstracts/ Abstract base classes
interfaces/ Contracts for providers/adapters
traits/ Shared traits
subscriptions/ Subscription plugin adapters
products/ WC product types and handlers
modules/ Independent modules
server-manager/ cPanel/Plesk server management
auto-provisioning/ Automatic service provisioning
support-desk/ Ticket system and knowledge base
domain-manager/ Domain registration and DNS
security/ Security features
notifications/ WooCommerce email templates
reports/ Analytics and CSV export
templates/ Overrideable templates
admin/ Admin page templates
frontend/ My Account templates
emails/ Email templates
assets/
css/ Stylesheets
js/ JavaScript files
languages/ Translation files
Template Overrides
Frontend and email templates can be overridden by copying them to your theme:
your-theme/hostforge/service-list.php
your-theme/hostforge/service-detail.php
your-theme/hostforge/ticket-list.php
your-theme/hostforge/ticket-detail.php
...
Frequently Asked Questions
Does HostForge handle invoicing or billing?
No. HostForge creates WooCommerce orders and subscriptions. For invoicing, install a dedicated billing plugin that suits your country's regulations.
Can I use HostForge without a subscription plugin?
Yes, but recurring billing for hosting services requires a subscription plugin. One-time products (domains, SSL certificates) work without one.
Which subscription plugin should I choose?
All four supported plugins work well. WooCommerce Subscriptions is the most popular. Choose based on your existing setup and preferences.
Can I add support for other server panels?
Yes. Implement the HF_Panel_Provider interface and register your provider via the hostforge_panel_providers filter. See the Developer Guide.
License
GPL-2.0-or-later. See LICENSE.