daily pastebin goal
32%
SHARE
TWEET

WooCommerce - Change default checkout fields placeholders

lorro Jun 11th, 2015 (edited) 226 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Top