woocommerce_checkout_fields

woocommerce_checkout_fields

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_checkout_fields') is found 1 times:

  • /includes/class-wc-checkout.php line 298
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    * @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.