Limit custom field checkout field length
-
add_filter( ‘woocommerce_checkout_fields’, ‘bbloomer_checkout_fields_custom_attributes’, 9999 );
function bbloomer_checkout_fields_custom_attributes( $fields ) {
$fields[‘Order’][‘order_wcj_checkout_field_1’][‘maxlength’] = 15;
return $fields;
}I can not work out what the array should be to set the limit on the custom field Order is not working I have also tried order_wcj_checkout_field. I have not been able to limit the characters what am I missing for this one?
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Limit custom field checkout field length’ is closed to new replies.