Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - Customizing locale dependant checkout fields
- add_filter( 'woocommerce_get_country_locale', 'custom_nz_locale' );
- function custom_nz_locale( $locale ){
- $locale['NZ']['state']['required'] = true;
- return $locale;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement