Last active
May 8, 2018 17:45
-
-
Save spigotdesign/6d7b44d5ba9d801c6f9a796a3edf79cb to your computer and use it in GitHub Desktop.
Change the default country for WooCommerce checkout shipping
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 the default country on the checkout page | |
*/ | |
add_filter( 'default_checkout_billing_country', 'change_default_checkout_country' ); | |
function change_default_checkout_country() { | |
return 'US'; // Put Country code here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment