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

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

add_action( 'woocommerce_update_options_(current_tab)', 'wp_kama_woocommerce_update_options_current_tab_action' );

/**
 * Function for `woocommerce_update_options_(current_tab)` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_update_options_current_tab_action(){

	// action...
}

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

WC_Admin_Settings::save()
woocommerce_update_options_(current_tab)
woocommerce/includes/admin/class-wc-admin-settings.php 78
do_action( 'woocommerce_update_options_' . $current_tab );

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

woocommerce/includes/emails/class-wc-email.php 265
add_action( 'woocommerce_update_options_email_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 81
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 82
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'save_account_details' ) );
woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php 51
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/gateways/cod/class-wc-gateway-cod.php 66
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php 110
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php 50
add_action( 'woocommerce_update_options_integration_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php 54
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php 82
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php 62
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php 90
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php 33
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php 89
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php 80
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/local-pickup/class-wc-shipping-local-pickup.php 64
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );