Created
August 26, 2020 11:03
-
-
Save Farmatique/c3f8e60cdd68943af197fe9233e9c6cd to your computer and use it in GitHub Desktop.
Woocommerce Wordpress loop through all countries (country code)
This file contains 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
$all_countries = WC()->countries->get_countries(); | |
foreach($all_countries as $country_code => $country){ | |
var_dump($country_code); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment