WC_Settings_Page::save_settings_for_current_section
Save settings for current section.
Method of the class: WC_Settings_Page{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->save_settings_for_current_section();
WC_Settings_Page::save_settings_for_current_section() WC Settings Page::save settings for current section code WC 10.5.0
protected function save_settings_for_current_section() {
global $current_section;
// We can't use "get_settings_for_section" here
// for compatibility with derived classes overriding "get_settings".
$settings = $this->get_settings( $current_section );
WC_Admin_Settings::save_fields( $settings );
}