Last active
November 25, 2022 08:43
-
-
Save zorem/5487605c2dfe92e849520adbdda4f1ac to your computer and use it in GitHub Desktop.
filter in the checkout validation for allowed country from dropdown
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 | |
// Checkout Validation allowed country | |
add_filter('checkout_validation_allowed_country', 'checkout_validation_allowed_country'); | |
function checkout_validation_allowed_country(){ | |
return array('AU'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment