default country and state multisite woocommerce checkout
-
i have a site and i was able to put the default country and state for the site on the checkout page but the below snippet
however i will have a multisite and i was wondering how i can change the default state and country for each multisite that will be DOMAIN.com/XX/**
* Change the default state and country on the checkout page
*/
add_filter( ‘default_checkout_billing_country’, ‘change_default_checkout_country’ );
add_filter( ‘default_checkout_billing_state’, ‘change_default_checkout_state’ );function change_default_checkout_country() {
return ‘US’; // country code
}function change_default_checkout_state() {
return ‘FL’; // state code
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘default country and state multisite woocommerce checkout’ is closed to new replies.