Skip to content

Instantly share code, notes, and snippets.

@vishalbasnet23
Created October 10, 2014 06:45
Show Gist options
  • Save vishalbasnet23/e307d97290c54d3c60f6 to your computer and use it in GitHub Desktop.
Save vishalbasnet23/e307d97290c54d3c60f6 to your computer and use it in GitHub Desktop.
Default Country woocommerce
add_filter( 'default_checkout_country', 'change_default_checkout_country' );
function change_default_checkout_country() {
return 'US'; // country code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment