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/beltoftandersen/beltoft-licenses/archive/refs/heads/main.zipSell software licenses with WooCommerce and WooCommerce Subscriptions: license keys, site activations, a license API for your plugins and themes, and update downloads.
See readme.txt for the user documentation and the license API.
Status
0.8.0: other plugins can add My Account tabs with the beltoft_licenses_account_groups filter, each holding the licenses it claims. Before it, 0.7.3: license keys on order pages and order emails follow the beltoft_licenses_account_show_key filter, so service plugins can hide their internal keys. Before it, 0.7.2: customers get a "New version available" email, sent in the background, when a newer release becomes current. Before it, 0.7.1: fixes from checkout testing (keys in the first order email, refunds, resubscribe, reactivation, customer emails for revoked and expired licenses). Before it, 0.7.0: storage, settings (Settings → Licenses), the license API, licenses from orders and WooCommerce Subscriptions, the expiry job (daily or hourly), releases (upload screen and GitHub webhook), My Account → Licenses, the admin license screens, wp beltoft-licenses import, and activation kinds with a resource API for plugins built on top.
Development
There are no runtime dependencies and no build step.
Tests use the WordPress PHPUnit test suite, with WooCommerce loaded from a WordPress install's plugins directory:
WP_TESTS_DIR=/path/to/wordpress-tests-lib \
WP_TESTS_PHPUNIT_POLYFILLS_PATH=/path/to/vendor/yoast/phpunit-polyfills \
SITE_PLUGINS=/path/to/wp-content/plugins \
phpunit
tests/fixtures/medusa/ holds responses recorded from a Medusa license backend. The "Medusa compatible" response format is tested against them.
Releases are built from the repository without the files listed in .distignore, and must pass Plugin Check with no errors.
License
GPL-2.0-or-later. Author: beltoft.net.