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

WooCommerce - Change default checkout fields placeholders

lorro Jun 11th, 2015 (edited) 228 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <?php
  2.   // Change default checkout fields placeholders
  3.   // code goes in functions.php for your child theme
  4.   add_filter('woocommerce_checkout_fields', 'custom_override_placeholders')
  5.   function custom_override_placeholders($address_fields) {
  6.     $address_fields['address_1']['placeholder'] = 'House';
  7.     $address_fields['address_2']['placeholder'] = 'Street';
  8.     $address_fields['county']['placeholder'] = 'County';
  9.     $address_fields['postcode']['placeholder'] = 'Postcode';
  10.     return $address_fields;
  11.   }
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