Want create site? Find Free WordPress Themes and plugins.

This is a simple snippet from the wonderful people at WooCommerce and does exactly what you would think. Add this snippet to the functions.php to add a new country to WooCommerce countries list.

The Code Snippet:

function woo_add_my_country( $country ) {
   $country["AE-DU"] = 'Dubai';
   return $country;
add_filter( 'woocommerce_countries', 'woo_add_my_country', 10, 1 );

Now enjoy!..

Did you find apk for android? You can find new Free Android Games and apps.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Posted by Editorial Staff