Created
July 15, 2021 12:18
-
-
Save jorpdesigns/3322c5aae0d6043bb2bac1e15aa9cb9d to your computer and use it in GitHub Desktop.
Snippet to change default billing country on WooCommerce
This file contains hidden or 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
<?php | |
add_filter( 'default_checkout_billing_country', 'change_default_checkout_country' ); | |
function change_default_checkout_country() { | |
return 'GB'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment