🎉 Use coupon MYXERO to enjoy 20% recurring discount on any plan. View Pricing
JB License Manager for WooCommerce
JB License Manager for WooCommerce

JB License Manager for WooCommerce

5/5 (1 ratings) — active installs Updated Apr 16, 2026
<strong>Dashboard</strong> — stats cards, filterable license table with domain progress bars.

<strong>Dashboard</strong> — stats cards, filterable license table with domain progress bars.

JB License Manager for WooCommerce turns your WordPress + WooCommerce site into a complete software licensing server. Sell plugins, themes, SaaS tools, or any digital product and automatically deliver encrypted license keys, control which domains can use each license, and revoke access instantly — all from your own WordPress dashboard.

🔑 Core Licensing

  • Automatic key generation — cryptographically random keys with customizable prefix (e.g. MYAPP-XXXXXX-XXXXXX-XXXXXX)
  • WooCommerce auto-delivery — license key is emailed to the customer the moment an order is completed, processing, or payment confirmed
  • Multi-domain activation — each license can allow 1 to unlimited domains (configured per product)
  • Domain allow / disallow — admin or customer can block a specific domain without revoking the whole license
  • Instant remote deactivation — when a domain is disallowed, the client plugin detects it within 15 seconds via WordPress Heartbeat and immediately locks premium features — no click required on the client site
  • Expiry by months or years — set 1 Month, 3 Months, 6 Months, 1 Year, 2 Years, or any duration (1–120 months / 1–10 years)
  • Status management — Active, Inactive, Suspended, Expired, Revoked
  • Automatic expiry — daily cron marks licenses expired and sends reminder emails
  • Domain-level encryption — activated domain names are hashed and never stored in plain text

🛒 WooCommerce Integration

  • Dedicated License product tab — enable licensing per product with one click
  • Set max domains, validity period, and key prefix per product
  • Auto-fill license settings from product when creating a manual license
  • License key shown on the order details page inside WooCommerce
  • My Account Licenses — full customer portal with all purchased licenses
  • Customer can view, copy, and allow/disallow their own domains without contacting support
  • Per-domain popup card showing activation date, last validated time, and IP address

🌐 REST API

Full public and admin REST API at /wp-json/jblm/v1/:

Public endpoints (license key authentication):

  • POST /activate — register a domain against a license key
  • POST /validate — verify a license key + domain (12-hour cached on client)
  • POST /deactivate — release a domain slot
  • POST /status — lightweight heartbeat check (does not update last_validated)

Admin endpoints (API key or logged-in admin):

  • GET /licenses — list all licenses with pagination, search, status filter
  • POST /licenses — create a license programmatically
  • GET /licenses/{id} — get single license with activations
  • PUT /licenses/{id} — update status, max_domains, expiry
  • DELETE /licenses/{id} — revoke a license
  • GET /licenses/{id}/activations — list all domain activations
  • GET /stats — dashboard stats (total, active, expired, expiring, revoked)

📊 Admin Dashboard

  • Stats cards — Total / Active / Expiring Soon / Expired / Revoked at a glance
  • Filterable table — search by email or key, filter by status
  • Click-to-copy license keys
  • View Sites popup modal — see all activated domains per license, allow/disallow with one click, quick status change
  • Domain progress bar — visual fill showing slots used vs. available
  • Expiry countdown — “14d left” shown in amber when expiring soon
  • Activity Logs page — last 500 events with time, license key, action, domain, IP, and result
  • Settings page — key prefix, expiry reminder days, email from name/address, email subject and template, REST API key

✉️ Email Notifications

  • License delivery email — sent automatically on WooCommerce order completion
  • Expiry reminder email — sent N days before expiry (configurable)
  • Status change email — sent when license is suspended or revoked
  • Fully customizable HTML template with placeholder tags: {license_key}, {expires_at}, {max_domains}, {order_id}, {customer_email}, {site_name}, {site_url}

📤 CSV Export / Import

  • Export all or filtered licenses to CSV with one click
  • CSV includes: ID, License Key, Customer Email, Status, Max Domains, Active Domains, Expiry, Order ID, Product ID, Created At, Active Domain URLs
  • Bulk import licenses from CSV — only customer_email required; other columns optional
  • Drag-and-drop upload zone in admin
  • Duplicate keys automatically skipped on import with per-row error reporting

🔒 Security

  • All domain names stored as SHA-256 hashes — even database access cannot reveal which domains are activated
  • Encryption secret key auto-generated on activation and stored securely in the database. Optionally define JBLM_SECRET_KEY in wp-config.php to use a custom value
  • All AJAX handlers protected with wp_nonce and current_user_can() checks
  • All API inputs sanitized with sanitize_text_field(), sanitize_email(), intval()
  • All outputs escaped with esc_html(), esc_attr(), esc_url()
  • All database queries use $wpdb->prepare() with parameterized placeholders

📦 Client SDK

Include the bundled jblm-client.php in your plugin or theme:

See Sample Plugin
<?php
/**
* Plugin Name: Your Plugin Name
* Version: 1.0.0
*/

// ============================================================
// STEP 1 — Load the license client
// Copy jblm-client.php into your plugin folder, then include it.
// ============================================================
require_once plugin_dir_path( __FILE__ ) . 'jblm-client.php';


// ============================================================
// STEP 2 — Set up your license
// Replace the two values below:
//   - 'https://yoursite.com'   the site where you installed JB License Manager
//   - 'your-plugin-slug'       any unique name for your plugin (no spaces)
// ============================================================
$license = new JBLM_Client(
    'https://yoursite.com',   //  CHANGE THIS
    'your-plugin-slug'        //  CHANGE THIS  e.g. 'my-seo-plugin'
);


// ============================================================
// STEP 3 — Register AJAX (required for Activate/Deactivate buttons)
// Just copy this line as-is. Don't change anything.
// ============================================================
add_action( 'plugins_loaded', function() use ( $license ) {
    $license->register_ajax_hooks();
});


// ============================================================
// STEP 4 — Block your premium features if license is not active
// Put this check at the top of any function that has premium code.
// If the license is invalid, the function will stop here.
// ============================================================
function my_premium_feature() {
    global $license;

    if ( ! $license->is_valid() ) {
        return; //  stops here if no valid license
    }

    // Your premium code goes below this line 
    echo 'Premium feature is running!';
}


// ============================================================
// STEP 5 — Show the License Key field on your settings page
// Call this inside the function that renders your settings page.
// It will show an input box + Activate / Deactivate buttons.
// ============================================================
function my_plugin_settings_page() {
    global $license;

    echo '<h1>My Plugin Settings</h1>';

    // This one line draws the full license box — input + buttons
    $license->render_settings_field();

    // ... rest of your settings fields
}

The SDK handles:
* License activation, validation (12 h cache), deactivation
* WordPress Heartbeat integration for instant deactivation — no click needed
* Built-in settings page with Activate / Check Status / Deactivate buttons
* Friendly Urdu/English error messages for common failure cases

⚡ Performance

  • License validation results cached as WordPress transients (12 hours by default)
  • Heartbeat status check (/status) does not write to the database — read-only
  • Index on license_key, domain_hash, user_id, status, and created_at columns
  • WooCommerce integration only loads when WooCommerce is active

Privacy Policy

JB License Manager for WooCommerce stores the following data in your WordPress database:

  • License keys (hashed) and associated customer email addresses
  • Domain names (stored as SHA-256 hashes — not in plain text)
  • IP addresses of activation and validation requests
  • Timestamps of all license events

This data is stored solely on your own WordPress server. No data is transmitted to any third-party service by this plugin.

External connections: Client sites that use the bundled SDK connect to your WordPress store URL to activate, validate, and check license status. This is a direct connection between two sites you control.

If you collect or process personal data (such as customer email addresses), ensure your site has an appropriate privacy policy as required by GDPR, CCPA, or your local regulations.

Developer SDK

The client-side SDK (for your own plugins/themes to validate licenses against this server) is available as a separate download from the plugin’s GitHub page. It is NOT included in the WordPress.org version of this plugin.

The WordPress.org version of this plugin is the license server — it stores and manages licenses. It does not lock any features behind a license check.