Skip to content

Instantly share code, notes, and snippets.

@woogist
Created August 12, 2013 08:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogist/6209018 to your computer and use it in GitHub Desktop.
Save woogist/6209018 to your computer and use it in GitHub Desktop.
WooCommerce - A a new country to countries list
/* Add a new country to countries list */
function woo_add_my_country( $country ) {
$country["AE-DU"] = 'Dubai';
return $country;
}
add_filter( 'woocommerce_countries', 'woo_add_my_country', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment