woocommerce_checkout_fields filter-hookWC 3.0.0

Sets the fields used during checkout.

Usage

add_filter( 'woocommerce_checkout_fields', 'wp_kama_woocommerce_checkout_fields_filter' );

/**
 * Function for `woocommerce_checkout_fields` filter-hook.
 * 
 * @param array[] $checkout_fields 
 *
 * @return array[]
 */
function wp_kama_woocommerce_checkout_fields_filter( $checkout_fields ){

	// filter...
	return $checkout_fields;
}
$checkout_fields(array[])
-

Changelog

Since 3.0.0 Introduced.
Since 3.0.0 or earlier

Where the hook is called

WC_Checkout::get_checkout_fields()
woocommerce_checkout_fields
woocommerce/includes/class-wc-checkout.php 300
$this->fields = apply_filters( 'woocommerce_checkout_fields', $this->fields );

Where the hook is used in WooCommerce

Usage not found.