Need a unique gift idea?
A Pastebin account makes a great Christmas gift

WooCommerce - Show city field placeholder

lorro Nov 5th, 2016 78 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <?php
  2. // show city field placeholder
  3. // code goes in functions.php for your child theme
  4. // See:
  5. add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
  6. function custom_override_checkout_fields( $fields ) {
  7.   $fields['billing']['billing_city']['placeholder'] = 'Town/City (required)';
  8.   return $fields;
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand