addon_manager = $addon_manager; } /** * Returns whether the add-on is installed and activated. * * @return bool */ public function is_active(): bool { return $this->addon_manager->is_installed( static::SLUG ); } /** * Returns whether the add-on has an valid license. * * @return bool */ public function has_license(): bool { return $this->addon_manager->has_valid_subscription( static::SLUG ); } }