Skip to content

Instantly share code, notes, and snippets.

@ofernandolopes
Forked from ChromeOrange/gist:9832001
Last active August 29, 2015 14:21
Show Gist options
  • Save ofernandolopes/70abdf9b25bfc8c9a532 to your computer and use it in GitHub Desktop.
Save ofernandolopes/70abdf9b25bfc8c9a532 to your computer and use it in GitHub Desktop.
WooCommerce - Set the store base city and postcode / zipcode
/**
* Set the store base city and postcode / zipcode
*/
add_filter( 'woocommerce_countries_base_city' , 'set_woocommerce_countries_base_city' );
function set_woocommerce_countries_base_city() {
// Replace with your store town/city
return 'Townland';
}
add_filter( 'woocommerce_countries_base_postcode' , 'set_woocommerce_countries_base_postcode' );
function set_woocommerce_countries_base_postcode() {
// Replace with your store postcode / zipcode
return '45040';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment