/** * Get the table data * * @return Array */ private function table_data() { $data = ap_point_option(); return $data; }
function ap_point_option_delete($id) { $opt = ap_point_option(); foreach ($opt as $k => $p) { if ($p['id'] == $id) { unset($opt[$k]); } } return update_option('ap_points', $opt); }