WC_Settings_Page::do_update_options_action
Trigger the 'woocommerce_update_options_'.id action.
Method of the class: WC_Settings_Page{}
Hooks from the method
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->do_update_options_action( $section_id );
- $section_id(string)
- Section to trigger the action for, or null for current section.
Default:null
WC_Settings_Page::do_update_options_action() WC Settings Page::do update options action code WC 10.6.2
protected function do_update_options_action( $section_id = null ) {
global $current_section;
if ( is_null( $section_id ) ) {
$section_id = $current_section;
}
if ( $section_id ) {
do_action( 'woocommerce_update_options_' . $this->id . '_' . $section_id );
}
}