Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Modifies checkout field arguments.
Parameters #
$fields_args(array) Array of field arguments for checkout fields.
Examples #
/**
* Modify checkout field arguments
*/
function modify_checkout_field_args( $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;
}
add_filter( 'fc_checkout_field_args', 'modify_checkout_field_args', 10 );
