Replies: 0
Hi,
How can I change the billing state field to a not required field? I tried this code but somehow its not working
function panda_custom_billing_fields( $fields ) {
$fields['billing']['billing_state']['required'] = false;
return $fields;
}
add_filter( 'woocommerce_checkout_fields', 'panda_custom_billing_fields', 999 );
regards,
dexter