advanced-ads / updater
The advanced ads addon updater
dev-main
2024-11-19 06:55 UTC
Requires
- php: >=7.2
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-19 06:55:15 UTC
README
📃 About
This package allows plugins to use their own update API.
💾 Installation
composer require advanced-ads/updater
🕹 Usage
include('vendor/autoload.php'); // retrieve our license key from the DB $license_key = trim( get_option( 'edd_sample_license_key' ) ); // setup the updater $edd_updater = new AdvancedAds\Framework\EDD\Updater( 'STORE_URL', __FILE__, array( 'version' => '1.0', // current version number 'license' => $license_key, // license key (used get_option above to retrieve from DB) 'item_id' => EDD_SAMPLE_ITEM_ID, // id of this plugin 'author' => 'Author Name', // author of this plugin 'beta' => false // set to true if you wish customers to receive update notifications of beta releases ) );