← All posts
2 min read

Installation & Client Integration

WPB

September 26, 2026

Installation & Client Integration

Integrating License Boss into your commercial WordPress plugin requires only 4 lines of configuration code.

IMPORTANT
Never hardcode your master server secret in distributed client plugins. The client SDK communicates solely via public REST validation tokens and domain-bound hashes.

1. Server-Side Installation

Upload license-boss.zip to your WordPress administration dashboard via Plugins > Add New > Upload Plugin, or install via WP-CLI:

bash
wp plugin install /path/to/license-boss.zip --activate

Upon activation, License Boss provisions 5 optimized relational tables:

  • wp_lb_products
  • wp_lb_licenses
  • wp_lb_activations
  • wp_lb_releases
  • wp_lb_telemetry

2. Drop-In Client SDK

Include class-license-boss-client.php in your distributed plugin’s includes/ directory:

my-plugin.php
require_once plugin_dir_path(__FILE__) . 'includes/class-license-boss-client.php';

new License_Boss_Client([
    'product_slug' => 'my-super-plugin',
    'server_url'   => 'https://yoursite.com/wp-json/license-boss/v1',
    'version'      => '1.0.0',
    'plugin_file'  => __FILE__,
]);

3. Remote Activation Endpoint

Clients activate their purchase with a simple POST request to your licensing server:

bash
curl -X POST https://yoursite.com/wp-json/license-boss/v1/activate 
  -H "Content-Type: application/json" 
  -d '{
    "license_key": "LB-XXXX-YYYY-ZZZZ",
    "product_slug": "my-super-plugin",
    "domain": "client-site.com"
  }'

Successful activation returns:

json
{
  "success": true,
  "status": "active",
  "product": "my-super-plugin",
  "domain": "client-site.com",
  "expires_at": "2027-09-26 00:00:00",
  "signature": "3f98a28c41d1e44f91048b..."
}

Or don't do it yourself

Hand the whole thing
to us.

Graphics, social, websites. We are the startup team for small brands that do not have one. You keep the focus. We run the output.

Book a Call →

← Previous

Docs-as-Code Synchronization

Next →

REST API & Action Hooks