woocommerce_widget_field_(type) action-hookWC 1.0

Default: run an action.

Usage

add_action( 'woocommerce_widget_field_(type)', 'wp_kama_woocommerce_widget_field_type_action', 10, 4 );

/**
 * Function for `woocommerce_widget_field_(type)` action-hook.
 * 
 * @param  $key      
 * @param  $value    
 * @param  $setting  
 * @param  $instance 
 *
 * @return void
 */
function wp_kama_woocommerce_widget_field_type_action( $key, $value, $setting, $instance ){

	// action...
}
$key
-
$value
-
$setting
-
$instance
-

Where the hook is called

WC_Widget::form()
woocommerce_widget_field_(type)
woocommerce/includes/abstracts/abstract-wc-widget.php 312
do_action( 'woocommerce_widget_field_' . $setting['type'], $key, $value, $setting, $instance );

Where the hook is used in WooCommerce

Usage not found.