woocommerce_update_options хук-событиеWC 1.0

Trigger actions.

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

add_action( 'woocommerce_update_options', 'wp_kama_woocommerce_update_options_action' );

/**
 * Function for `woocommerce_update_options` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_update_options_action(){

	// action...
}

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

WC_Admin_Settings::save()
woocommerce_update_options
WC_AJAX::toggle_gateway_enabled()
woocommerce_update_options
woocommerce/includes/admin/class-wc-admin-settings.php 80
do_action( 'woocommerce_update_options' );
woocommerce/includes/class-wc-ajax.php 3154
do_action( 'woocommerce_update_options' );

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

woocommerce/includes/tracks/events/class-wc-settings-tracking.php 35
add_action( 'woocommerce_update_options', array( $this, 'send_settings_change_event' ) );
woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php 112
add_action( 'woocommerce_update_options', array( $this, 'run_on_update_options' ), 10, 3 );