Advertisement
majeedraza

WooCommerce - Overide default address fields

Apr 30th, 2020
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2.   // WooCommerce - Overide default address fields
  3.   add_filter( 'woocommerce_default_address_fields', 'wc_override_address_fields', PHP_INT_MAX );
  4.   function wc_override_address_fields( $fields ) {
  5.     $fields['address_1']['placeholder'] = 'Street Address';
  6.     $fields['country']['placeholder'] = 'Country';
  7.     return $fields;
  8.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement