Advertisement
lorro

WooCommerce - Change default checkout fields placeholders

Jun 11th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  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.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement