If you have the American version and want to change it, the code below will do this. Why does woocommerce not have this as an option?
Before
1 2 3 4 5 6 7 8 9 |
//change address defaults add_filter('woocommerce_default_address_fields', 'override_address_fields'); function override_address_fields( $address_fields ) { // $address_fields['address_1']['placeholder'] = 'Test'; $address_fields['address_2']['placeholder'] = ''; return $address_fields; } |