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.
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.
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
}
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
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
Helper API
Globally available functions for checking, retrieving status, and managing plugins.
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.
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)
| 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.