woocommerce_checkout_fields

woocommerce_checkout_fields

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_checkout_fields') is found 1 times:

  • /includes/class-wc-checkout.php line 300
    		 * @since 3.0.0 or earlier
    		 *
    		 * @param array[] $checkout_fields
    		 */
    		$this->fields = apply_filters( 'woocommerce_checkout_fields', $this->fields );
    
    		foreach ( $this->fields as $field_type => $fields ) {
    			// Sort each of the checkout field sections based on priority.
    			uasort( $this->fields[ $field_type ], 'wc_checkout_fields_uasort_comparison' );
    
    			// Add accessibility labels to fields that have placeholders.