-
-
Save jondcampbell/7927e2f308b614a8083d to your computer and use it in GitHub Desktop.
Change zip label to postcal code for Canadian woocommerce customers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Change zip to postal code for canada | |
*/ | |
add_filter( 'woocommerce_get_country_locale', 'fs_custom_checkout_locale' ); | |
function fs_custom_checkout_locale( $locale ) { | |
$locale['CA']['postcode']['label'] = __( 'Postal Code', 'woocommerce' ); | |
$locale['CA']['postcode']['placeholder'] = __( 'Postal Code', 'woocommerce' ); | |
return $locale; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment