public function add_field($id, $type, array $args, $callback = null) { $current_section = $this->current_section; if (empty($current_section)) { throw new \Exception("OPTBOX > Section empty."); } array_push($this->sections[$current_section]['fields'], $id); return parent::add_field($id, $type, $args, $callback); }