I’m use a function to manipulate the Woocommerce checkout fields
function custom_override_checkout_fields( $fields )
{
// Text
$fields['billing']['billing_address_1']['placeholder'] = 'Address line 1';
$fields['billing']['billing_address_1']['label'] = 'Address';
$fields['billing']['billing_address_2']['placeholder'] = 'Address line 2';
$fields['billing']['billing_city']['placeholder'] = 'TEST';
}
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields',99 );
which is mostly working (for setting properties of most fields, classes etc.
for the snippet above, the billing_city
placeholder is working but the billing_address_1
and billing_address_2
placeholder and label aren’t.
What am I missing here?