Edit Checkout Field Label
How can I change/edit the address field label on checkout form? (see attached)
I already tried adding code to function.php but it didn't work.
Here's the code:
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
$fields['billing']['billing_city']['label'] = 'Barangay + City';
$fields['shipping']['shipping_city']['label'] = 'Barangay + City';
return $fields;
}
I already tried using plugin such as WooCommerce checkout fields but still didn't work.
Please help.
Thank you in advance.
Comments
Hi,
You are using a new widget method for the checkout field that WooCommerce introduced some time ago.
When you replace it with the Shortcode, the code you tried to use should work properly.
https://woocommerce.com/document/woocommerce-shortcodes/page-shortcodes/#checkout
Best regards
Thank you so much!