WC_Settings_Page::do_update_options_action
Trigger the 'woocommerce_update_options_'.id action.
Метод класса: WC_Settings_Page{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->do_update_options_action( $section_id );
- $section_id(строка)
- Section to trigger the action for, or null for current section.
По умолчанию:null
Код WC_Settings_Page::do_update_options_action() WC Settings Page::do update options action WC 10.5.0
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 );
}
}