Add a new country to countries list

To add a new country to the countries list, use this snippet inside the function.php file of your theme folder:

function woo_add_my_country( $country ) {
 $country[“AEDUB”] = ‘Dubai’;
 return $country;
add_filter( ‘woocommerce_countries’, ‘woo_add_my_country’, 10, 1 );
See also  Pure CSS3 Html List Based Column/Bar Chart

Leave a Reply

Your email address will not be published. Required fields are marked *