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

Trigger actions.

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

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 79
do_action( 'woocommerce_update_options_' . $current_tab );

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

woocommerce/includes/emails/class-wc-email.php 258
add_action( 'woocommerce_update_options_email_' . $this->id, array( $this, 'process_admin_options' ) );
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' ) );
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 40
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php 73
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 40
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 74
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 73
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/includes/shipping/local-pickup/class-wc-shipping-local-pickup.php 56
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php 103
self::add_action( 'woocommerce_update_options_advanced_custom_data_stores', array( $this, 'process_options_updated' ), 10, 0 );