Fields
-
Hi everybody. I changed some fields with this code
// Hook in add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); // Our hooked in function - $fields is passed via the filter! function custom_override_checkout_fields( $fields ) { $fields['billing']['billing_city']['placeholder'] = 'London'; / $fields['billing']['billing_city']['label'] = 'Region and city'; $fields['billing']['billing_postcode']['placeholder'] = 'Post 1'; $fields['billing']['billing_postcode']['label'] = 'Number of post'; return $fields; }
So, placeholder is changed, but not a label. How to change LABEl?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Fields’ is closed to new replies.