woocommerce_update_option_(type) action-hookWC 1.0

Deprecated from version 2.4.0 - doesn't allow manipulation of values!. It is no longer supported and can be removed in future releases. It is recommended to replace this hook with the same one.

Deprecated: 2.4.0 - doesn't allow manipulation of values!

Fire an action when a certain 'type' of field is being saved.

Usage

add_action( 'woocommerce_update_option_(type)', 'wp_kama_woocommerce_update_option_type_action' );

/**
 * Function for `woocommerce_update_option_(type)` action-hook.
 * 
 * @param  $option 
 *
 * @return void
 */
function wp_kama_woocommerce_update_option_type_action( $option ){

	// action...
}
$option
-

Changelog

Deprecated since 2.4.0 - doesn't allow manipulation of values!

Where the hook is called

WC_Admin_Settings::save_fields()
woocommerce_update_option_(type)
woocommerce/includes/admin/class-wc-admin-settings.php 872
do_action( 'woocommerce_update_option_' . sanitize_title( $option['type'] ), $option );

Where the hook is used in WooCommerce

Usage not found.