Try adding this to your Theme’s function.php file:
add_filter( 'woocommerce_billing_fields', 'wc_billing_fields_state_filter', 10, 1 );
function wc_billing_fields_state_filter( $address_fields ) {
$address_fields['billing_state']['label'] = 'Select a region';
return $address_fields;
}
Hi Yojance, that worked as far as the label changes, but the drop down menu still starts / defaults to “Select a State” – Any ideas how to change the drop down list default from “Select a State” to “Select a Region” too?
Thanks
Chris
I looked at the code and this value seems to be hardcoded inside woocommerce-template.php around line 1384.
I would never edit any files directly because these might be overriden once you update your plug-in. Sounds like jQuery is the way to go in order to change the value of the first drop down.
Chrisp2408, can you share what you did to solve this ?
Thanks 🙂