/** * Admin Panel Options Processing * - Saves the options to the DB * * @since 1.0.0 */ public function process_instance_options() { include_once 'admin/table-rate-rows.php'; $this->validate_settings_fields($this->instance_fields); if (count($this->errors) > 0) { $this->display_errors(); return false; } else { wc_table_rate_admin_shipping_rows_process($this->number); update_option($this->plugin_id . $this->instance_id . '_settings', $this->sanitized_fields); return true; } }
/** * Admin Panel Options Processing * - Saves the options to the DB * * @since 1.0.0 * @deprecated 3.0.0 */ public function process_instance_options() { $this->validate_settings_fields($this->get_instance_form_fields()); if (count($this->errors) > 0) { $this->display_errors(); return false; } else { wc_table_rate_admin_shipping_rows_process($this->instance_id); update_option($this->get_instance_option_key(), $this->sanitized_fields); return true; } }