public function prepare_items() { /* Generate Headers */ $this->_column_headers = array($this->get_columns(), array(), array(), 'fname'); // Write Bulk Action Prossesing $this->process_bulk_action(); // Sets Pagination Data $per_page = 10; //TODO make changable $cur_page = $this->get_pagenum(); $this->set_pagination_args(array('total_items' => TTR_db::get_count(), 'per_page' => $per_page)); // Sets Tutors For Database $this->items = TTR_db::get_tutors($per_page, $cur_page); }