woocommerce_form_field_(type) хук-фильтрWC 1.0

Filter by type.

Использование

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
-

Где вызывается хук

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

Где используется хук в WooCommerce

Использование не найдено.