• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_License::auto_updater() – Auto updater

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
    );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th January 2022

Primary Sidebar

Information

Function name: EDD_License::auto_updater
Class ref: EDD_License
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/class-edd-license-handler.php
File ref: includes/class-edd-license-handler.php
Deprecated?: No
API Letters: A,E,L,U

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 6.0
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins