/** * Save the settings field values * * @since 0.0.1 * @version 0.0.1 * * @return void */ public function save() { global $current_section; $settings = $this->get_settings(); SettingGenerator::save_fields($settings); if ($current_section) { do_action('launchpad_update_options_' . $this->id . '_' . $current_section); } }
/** * get settings from the database * * @since 0.0.1 * @version 0.0.1 * * @return array */ public function output() { $settings = $this->get_settings(); SettingGenerator::output_fields($settings); }