addon_info = $addon_info; $this->initialize(); $this->setup_license_handler(); } /** * Get details about the add-on. * * @return \BulkWP\BulkDelete\Core\Addon\AddonInfo Add-on Info. */ public function get_info() { return $this->addon_info; } /** * Get reference to the main Bulk Delete object. * * @return \BulkWP\BulkDelete\Core\BulkDelete BulkDelete object. */ public function get_bd() { return BulkDelete::get_instance(); } /** * Setup License Handler. * * TODO: Need this to be refactored. */ protected function setup_license_handler() { $this->license_handler = new BD_License_Handler( $this->addon_info->get_name(), $this->addon_info->get_code(), $this->addon_info->get_version(), $this->addon_info->get_root_file(), $this->addon_info->get_author() ); } }