Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change the default country for WooCommerce checkout shipping
/**
* 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
You can’t perform that action at this time.