woocommerce_update_options_(id)_(section_id) хук-событиеWC 1.0

Использование

add_action( 'woocommerce_update_options_(id)_(section_id)', 'wp_kama_woocommerce_update_options_id_section_action' );

/**
 * Function for `woocommerce_update_options_(id)_(section_id)` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_update_options_id_section_action(){

	// action...
}

Где вызывается хук

WC_Settings_Page::do_update_options_action()
woocommerce_update_options_(id)_(section_id)
woocommerce/includes/admin/settings/class-wc-settings-page.php 249
do_action( 'woocommerce_update_options_' . $this->id . '_' . $section_id );

Где используется хук в WooCommerce

woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 67
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 68
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'save_account_details' ) );
woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php 44
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/gateways/cod/class-wc-gateway-cod.php 45
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 74
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );