Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jondcampbell/7927e2f308b614a8083d to your computer and use it in GitHub Desktop.
Save jondcampbell/7927e2f308b614a8083d to your computer and use it in GitHub Desktop.
Change zip label to postcal code for Canadian woocommerce customers
/*
* 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