Created
May 12, 2021 10:27
-
-
Save wbcomdev/17580892aa37ce0e590441e853189656 to your computer and use it in GitHub Desktop.
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
| /** | |
| * Change the default country on the checkout page. | |
| */ | |
| function wb_change_default_checkout_country() { | |
| // Enter the country code here. | |
| return 'XX'; | |
| } | |
| /** | |
| * Change the default state on the checkout page. | |
| */ | |
| function wb_change_default_checkout_state() { | |
| // Enter the state code here. | |
| return 'XX'; | |
| } | |
| add_filter( 'default_checkout_billing_country', 'wb_change_default_checkout_country' ); | |
| add_filter( 'default_checkout_billing_state', 'wb_change_default_checkout_state' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment