alledia/edd-sl-plugin-updater

EDD Updates Handler for WordPress Plugins

Maintainers

👁 andergmartins

Package info

github.com/publishpress/EDD-SL-Plugin-Updater

Issues

pkg:composer/alledia/edd-sl-plugin-updater

Statistics

Installs: 44 451

Dependents: 3

Suggesters: 0

Stars: 3

1.6.25 2026-03-03 20:32 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later 05efd00f46b7f82eac4b769f691001e09b0796a0

  • EasyDigitalDownloads <contact.woop@easydigitaldownloads.com>
  • PublishPress <help.woop@publishpress.com>
  • Alledia <help.woop@alledia.com>

wordpressupdatesedd


README

This library should be used on add-ons or plugins sold on EDD. It handles the updates for plugins integrated with Easy Digital Downloads in WordPress sites.

Requirements

This class can only be used with EDD v1.7 and later.

How to use it

Installing

Add as a requirement using composer:

$ composer require alledia/edd-sl-plugin-updater 

Or add it manually to the composer.json file:

{
 "require": {
 "alledia/edd-sl-plugin-updater": "dev-master"
 }
} 

Loading and initializing

<?php
add_action('admin_init', 'init_updater');

function init_updater()
{
 // The site for the EDD store.
 $apiUrl = 'https://site-with-edd.com';
 
 $pluginFile = 'your-plugin/your-plugin.php';
 // The version of your add-on/plugin.
 $currentVersion = '1.0.5';
 // ID for the add-on/plugin on EDD.
 $addonEddId = '3252';
 
 $author = 'Your Name';
 
 // Initialize the library.
 $updater = new Alledia\EDD_SL_Plugin_Updater(
 $apiUrl,
 $pluginFile,
 [
 'version' => $currentVersion,
 'license' => get_option('upstream_frontend_edit_license_key'),
 'item_id' => $addonEddId,
 'author' => $author,
 'beta' => false,
 ]
 );
}