Advertisement
majeedraza

WooCommerce - Customizing locale dependant checkout fields

Aug 2nd, 2018
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?php
  2. // WooCommerce - Customizing locale dependant checkout fields
  3. add_filter( 'woocommerce_get_country_locale', 'custom_nz_locale' );
  4. function custom_nz_locale( $locale ){
  5.   $locale['NZ']['state']['required'] = true;
  6.   return $locale;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement