/** * Static method for retrieving the subscription status. * * @since 1.0 * @return bool */ public static function get_subscription_status() { $status = self::api_request(self::$_store_api_url, array('fl-api-method' => 'subscription_status', 'email' => FLUpdater::get_subscription_email())); if (isset($status->active) && $status->active) { return $status; } return false; }
<?php if (class_exists('FLUpdater')) { FLUpdater::add_product(array('name' => 'Beaver Builder Plugin (Agency Version)', 'version' => '1.7.3', 'slug' => 'bb-plugin', 'type' => 'plugin')); }
<?php if (class_exists('FLUpdater')) { FLUpdater::add_product(array('name' => 'Beaver Builder Plugin (Lite Version)', 'version' => '1.6.4.4', 'slug' => 'bb-plugin', 'type' => 'plugin')); }
<?php /* Only run if not already setup and not using a repo version. */ if (!class_exists('FLUpdater') && FL_BUILDER_LITE !== true) { /* Defines */ define('FL_UPDATER_DIR', trailingslashit(dirname(__FILE__))); /* Classes */ require_once FL_UPDATER_DIR . 'classes/class-fl-updater.php'; /* Actions */ add_action('fl_themes_license_form', 'FLUpdater::render_form'); /* Run the updater. */ FLUpdater::init(); }
/** * Static method for retrieving the subscription info. * * @since 1.0 * @return bool */ public static function get_subscription_info() { return self::api_request(self::$_updates_api_url, array('fl-api-method' => 'subscription_info', 'domain' => network_home_url(), 'license' => FLUpdater::get_subscription_license())); }