/** * Display the table */ public function display_table() { // The list table. $list_table = new YMBESEO_GSC_Table($this->platform, $this->category, $this->issue_fetch->get_issues()); // Adding filter to display the category filters. add_filter('views_' . $list_table->get_screen_id(), array($this->category_filter, 'as_array')); // Preparing and displaying the table. $list_table->prepare_items(); $list_table->search_box(__('Search', 'ymbeseo'), 'wpseo-crawl-issues-search'); $list_table->display(); }
/** * Delete the crawl issue from the database * * @return bool */ private function delete_crawl_issue() { return $this->crawl_issues->delete_issue($this->url); }