GET ACCESS
Centralized WordPress Licensing

Licensing Under Control.
Your Plugins. Your Rules.

Centralized licensing system for WordPress plugins. Local token generation, WooCommerce server-side validation, REST API endpoint, and scheduled checks via WP-Cron — all in one plugin that every product of yours can use.

Local + Remote Validation Mode
WP-Cron Automated Checks
REST API Server Endpoint
WooCommerce Auto License Keys

Everything for Professional Licensing

Built for developers who sell WordPress plugins and need a reliable system for generating, validating, and tracking licenses.

Local Licenses

Generate signed tokens tied to a domain and product directly from Tools → ApexLicence. No external server needed — full local control.

WooCommerce Server

Your WordPress shop becomes a licensing server. Automatic key generation on order completion, stored in order meta, with REST API for validation.

Scheduled Checks

WP-Cron checks licenses once or twice daily. Status is stored in wp_options so every plugin can instantly know if the license is active.

Hooks & Filters

apexlicence_check_result filter for status customization and apexlicence_after_check action that fires after each check.

Custom Validator

Pass a validator_callback during registration and implement your own logic. The callback receives payload and config, returns valid/message/expires_at.

Helper Functions

apexlicence_is_valid(), apexlicence_get_status(), apexlicence_check_now(), and apexlicence_unregister_plugin() — all available globally.

// Register your plugin
add_action('init', function () {
  apexlicence_register_plugin([
    'slug' => 'my-plugin',
    'name' => 'My Plugin',
    'license_key_option' => 'my_plugin_license_key',
    'mode' => 'local',
  ]);
});

// Check anywhere
if ( apexlicence_is_valid('my-plugin') ) {
  // Pro features unlocked
}
Signed tokens Domain-locked

Integration in a Few Lines of Code

Register a plugin with a single call and ApexLicence handles everything else — scheduled checks, status storage, and helper functions available anywhere in your code.

  • mode → local: token generation without a server
  • mode → remote: api_url for validation on your shop
  • check_interval: how often to validate (default 12h)
  • validator_callback: fully custom validation
WooCommerce Mode Arhitektura

Your Shop as a Licensing Server

When a WooCommerce order completes, ApexLicence automatically generates a key and stores it on the order. Client plugins send a request to your REST API endpoint for validation — without any third party.

  • Automatic key generation on order completion
  • REST endpoint: /wp-json/apexlicence/v1/check
  • Validation by license_key, domain, and product_id
  • Optional expiration date per product
  • Keys available as order note and meta
License Server REST API
Product Meta _apexlicence_product_slug
Expiration _apexlicence_expires_at
Order Keys _apexlicence_license_keys
API Check license_key + domain
Domain locked Expirable
"Sell once, validate forever" — your WooCommerce shop as a SaaS backend.

Helper API

Globally available functions for checking, retrieving status, and managing plugins.

is_valid() get_status() check_now()

Simple API for Developers

Four helper functions cover all scenarios — from a quick check in an if statement to forced revalidation and deregistration. Every plugin accesses the same mechanism.

  • apexlicence_is_valid($slug) → true/false
  • apexlicence_get_status($slug) → full status array
  • apexlicence_check_now($slug) → force recheck
  • apexlicence_unregister_plugin($slug) → cleanup

Architecture and Security

ApexLicence is designed for reliability — signed tokens, domain-lock, silent background checks, and minimal database footprint.

Signed Tokens
Local licenses use a secret key (apexlicence_secret) for signing. The token is tied to domain and slug.
Scheduled Checks
WP-Cron checks every 12 or 24 hours. No blocking of user requests — everything runs in the background.
Domain Locking
Every token/key is tied to a specific domain. The endpoint verifies domain match on every request.
Lightweight Footprint
Only 3 wp_options records: registered plugins, statuses, and signing key. No custom tables.
Hooks for Extension
apexlicence_check_result filter and apexlicence_after_check action — adapt behavior for edge cases.
REST API Endpoint
/wp-json/apexlicence/v1/check accepts license_key, domain, and product_id. Standard WordPress REST registration.

Requirements and Compatibility

ApexLicence works standalone for local mode. WooCommerce is only required if you use server-side licensing (automatic key generation on orders).

  • WordPress 5.8+
  • PHP 7.4+
  • WooCommerce (optional, for server mode)
Data Stored wp_options
Option Key Purpose
apexlicence_registered_plugins Plugin configs
apexlicence_statuses Check results
apexlicence_secret Signing key

Ready to Protect Your Plugins?

Register, generate licenses locally or set up a WooCommerce server — all in one plugin. Combine with Apex Booking, Export, and Import for the complete Apex ecosystem.

Get ApexLicence All Products
Autor: Antonio · GPLv2 or later