public function __construct() { self::$instance = $this; add_filter('themeco_update_api', array($this, 'register')); add_filter('themeco_update_cache', array($this, 'cache_updates'), 10, 2); add_action('themeco_update_api_response', array($this, 'update')); add_action('init', array($this, 'init')); // add_action( 'upgrader_pre_download', array( $this, 'upgrader_screen_message' ), 10, 3 ); }
public function __construct() { self::$instance = $this; add_action('init', array($this, 'init')); add_action('upgrader_pre_download', array($this, 'upgrader_screen_message'), 10, 3); if (defined('THEMECO_PRERELEASES') && THEMECO_PRERELEASES) { add_filter('x_update_product_slug', array($this, 'enable_pre_release_updates')); add_filter('x_update_response_data', array($this, 'filter_pre_release_data')); } }
public function __construct() { self::$instance = $this; add_action('init', array($this, 'init')); add_action('upgrader_pre_download', array($this, 'upgrader_screen_message'), 10, 3); }