/** * Loads the License_Plugin_Manager class * * The class will take care of the rest: notices, license (de)activations, updates, etc.. */ public function load_license_manager() { // Instantiate license class $license_manager = new MI_Plugin_License_Manager(new Sample_Product()); // Setup the required hooks $license_manager->setup_hooks(); }
/** * Setting up the license manager * * @since 3.0 */ protected function setup_license_manager() { $license_manager = new MI_Plugin_License_Manager($this); $license_manager->setup_hooks(); add_filter('yst_ga_extension_status', array($this, 'filter_extension_is_active'), 10, 1); add_action('yst_ga_show_license_form', array($this, 'action_show_license_form')); $this->license_manager = $license_manager; }