EDD_SL_Plugin_Updater.php
68 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Easy Digital Downloads Software Licensing Plugin Updater |
| 4 | * |
| 5 | * This file is a placeholder/stub for the EDD Software Licensing updater class. |
| 6 | * |
| 7 | * TO USE EDD LICENSING: |
| 8 | * Download the actual updater class from: |
| 9 | * https://github.com/easydigitaldownloads/EDD-License-Handler/blob/master/EDD_SL_Plugin_Updater.php |
| 10 | * |
| 11 | * And replace this file with the downloaded version. |
| 12 | * |
| 13 | * @package WP2FA |
| 14 | * @subpackage Licensing |
| 15 | * @copyright Easy Digital Downloads |
| 16 | * @license GPL-2.0+ |
| 17 | * @since 3.2.0 |
| 18 | */ |
| 19 | |
| 20 | if ( ! class_exists( 'EDD_SL_Plugin_Updater' ) ) { |
| 21 | |
| 22 | /** |
| 23 | * EDD Software Licensing Plugin Updater Class |
| 24 | * |
| 25 | * IMPORTANT: This is a STUB/PLACEHOLDER class. |
| 26 | * Replace this file with the actual EDD_SL_Plugin_Updater class from: |
| 27 | * https://github.com/easydigitaldownloads/EDD-License-Handler |
| 28 | * |
| 29 | * @since 3.2.0 |
| 30 | */ |
| 31 | class EDD_SL_Plugin_Updater { |
| 32 | |
| 33 | /** |
| 34 | * Stub constructor. |
| 35 | * |
| 36 | * @param string $api_url The URL pointing to the custom API endpoint. |
| 37 | * @param string $plugin_file Path to the plugin file. |
| 38 | * @param array $api_data Optional data to send with API calls. |
| 39 | */ |
| 40 | public function __construct( $api_url = '', $plugin_file = '', $api_data = array() ) { |
| 41 | // This is a placeholder. Download the real class from EDD. |
| 42 | if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { |
| 43 | error_log( 'WP2FA: EDD_SL_Plugin_Updater is a stub. Please download the real class from https://github.com/easydigitaldownloads/EDD-License-Handler' ); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Placeholder initialization method. |
| 49 | */ |
| 50 | public function init() { |
| 51 | // Placeholder |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * INSTRUCTIONS FOR SETUP: |
| 58 | * |
| 59 | * 1. Download the EDD Software Licensing updater: |
| 60 | * https://github.com/easydigitaldownloads/EDD-License-Handler/blob/master/EDD_SL_Plugin_Updater.php |
| 61 | * |
| 62 | * 2. Replace THIS file with the downloaded file |
| 63 | * |
| 64 | * 3. The EDD_Provider class will automatically use it for plugin updates |
| 65 | * |
| 66 | * 4. No other changes needed - the licensing system will handle the rest |
| 67 | */ |
| 68 |