woocommerce_widget_field_(type)
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
woocommerce_widget_field_(type)
woocommerce/includes/abstracts/abstract-wc-widget.php 312
do_action( 'woocommerce_widget_field_' . $setting['type'], $key, $value, $setting, $instance );