woocommerce_form_field filter-hookWC 3.4.0

General filter on form fields.

Usage

add_filter( 'woocommerce_form_field', 'wp_kama_woocommerce_form_field_filter', 10, 4 );

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

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

Changelog

Since 3.4.0 Introduced.

Where the hook is called

woocommerce_form_field()
woocommerce_form_field
woocommerce/includes/wc-template-functions.php 3065
$field = apply_filters( 'woocommerce_form_field', $field, $key, $args, $value );

Where the hook is used in WooCommerce

Usage not found.