PHP code example of dwnload / edd-software-license-manager

1. Go to this page and download the library: Download dwnload/edd-software-license-manager library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dwnload / edd-software-license-manager example snippets


$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();