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

Sign In or Register to comment.