/** * Constructor * * @param DVK_Product $product */ public function __construct(DVK_Product $product) { // Set the license $this->product = $product; // run upgrade script $this->db_version = (int) get_option($product->get_prefix() . 'license_manager_version', 0); if ($this->db_version < self::VERSION) { $this->upgrade(); } }
/** * Gets the remote product data from a 3-hour transient * * @return bool|mixed */ private function get_cached_remote_data() { $data = get_site_transient($this->product->get_prefix() . 'update-response'); if ($data) { return $data; } return false; }
public function __construct() { parent::__construct('https://mc4wp.com/api/edd-licenses/', 'MailChimp for WordPress Pro', plugin_basename(MC4WP_PLUGIN_FILE), MC4WP_VERSION, 'https://mc4wp.com/', 'admin.php?page=mailchimp-for-wp', 'mailchimp-for-wp', 'Danny van Kooten', 'mc4wp_'); }