woocommerce_form_field_(type) filter-hookWC 1.0

Filter by type.

Usage

add_filter( 'woocommerce_form_field_(type)', 'wp_kama_woocommerce_form_field_type_filter', 10, 4 );

/**
 * Function for `woocommerce_form_field_(type)` filter-hook.
 * 
 * @param  $field 
 * @param  $key   
 * @param  $args  
 * @param  $value 
 *
 * @return 
 */
function wp_kama_woocommerce_form_field_type_filter( $field, $key, $args, $value ){

	// filter...
	return $field;
}
$field
-
$key
-
$args
-
$value
-

Where the hook is called

woocommerce_form_field()
woocommerce_form_field_(type)
woocommerce/includes/wc-template-functions.php 2961
$field = apply_filters( 'woocommerce_form_field_' . $args['type'], $field, $key, $args, $value );

Where the hook is used in WooCommerce

Usage not found.