You appear to be a bot. Output may be restricted
Description
Auto updater
Usage
EDD_License::auto_updater();
Parameters
Returns
void void
Source
File name: easy-digital-downloads/includes/class-edd-license-handler.php
Lines:
1 to 37 of 37
public function auto_updater() { $doing_cron = defined( 'DOING_CRON' ) && DOING_CRON; if ( ! current_user_can( 'manage_options' ) && ! $doing_cron ) { return; } $license = $this->license; // Fall back to the highest license key if one is not saved for this extension. if ( empty( $license ) ) { $pass_manager = new \EDD\Admin\Pass_Manager(); if ( $pass_manager->highest_license_key ) { $license = $pass_manager->highest_license_key; } } $betas = edd_get_option( 'enabled_betas', array() ); $args = array( 'version' => $this->version, 'license' => $license, 'author' => $this->author, 'beta' => function_exists( 'edd_extension_has_beta_support' ) && edd_extension_has_beta_support( $this->item_shortname ), ); if( ! empty( $this->item_id ) ) { $args['item_id'] = $this->item_id; } else { $args['item_name'] = $this->item_name; } // Setup the updater $edd_updater = new EDD_SL_Plugin_Updater( $this->api_url, $this->file, $args ); }