-
-
Save ofernandolopes/70abdf9b25bfc8c9a532 to your computer and use it in GitHub Desktop.
WooCommerce - Set the store base city and postcode / zipcode
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
/** | |
* 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