A PHP class abstraction for managing WordPress plugin licenses and auto-updates that are sold on an Easy Digital Downloads store.
To install this package, edit your composer.json file:
{ "require": { "dwnload/edd-software-license-manager": "^2.0" } }Now run:
$ composer install dwnload/edd-software-license-manager
$license = \get_option(\Dwnload\EddSoftwareLicenseManager\Edd\AbstractLicenceManager::LICENSE_SETTING, []); $data = [ 'license' => $license[$plugin_id]['license'] ?? '', 'item_name' => 'Custom Login Style Pack #1', // Name of this plugin (matching your EDD Download title). 'author' => 'Frosty Media', 'item_id' => (int), 'version' => '1.0.0', ]; \TheFrosty\WpUtilities\Plugin\Plugin $plugin ->add(new Edd\LicenseManager($plugin, $data)) ->add(new Edd\PluginUpdater('https://frosty.media/', __FILE__, $data)) ->initialize();