woocommerce_update_options_(id)_(section_id)
Использование
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... }
Где вызывается хук
woocommerce_update_options_(id)_(section_id)
woocommerce/includes/admin/settings/class-wc-settings-page.php 301
do_action( 'woocommerce_update_options_' . $this->id . '_' . $section_id );
Где используется хук в WooCommerce
woocommerce/includes/class-wc-brands.php 82
add_action( 'woocommerce_update_options_products_inventory', array( $this, 'recount_all_brands' ) );
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' ) );