fc_checkout_field_args
Type: Filter
Filters the argument overrides applied to checkout fields.
Signature
apply_filters( 'fc_checkout_field_args', $fields_args );
Parameters
| Name | Type | Description |
|---|---|---|
$fields_args | array | Fields args. |
Since
1.2.0
Source: inc/checkout-fields.php
Examples
add_filter( 'fc_checkout_field_args',
/**
* Modify checkout field arguments.
*
* @param array $fields_args Fields args.
* @return array Filtered value.
*/
function( $fields_args ) {
// Change billing_first_name field CSS class
if ( isset( $fields_args['billing_first_name'] ) ) {
$fields_args['billing_first_name']['class'] = array( 'billing-first-name-class' );
}
return $fields_args;
},
10
);