public function add_tab($tab_name, $fields) { $this->add_template('tabs', array($this, 'template_tabs')); $this->add_fields($fields); $this->create_tab($tab_name, $fields); return $this; }