Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Last active April 17, 2016 17:09
Show Gist options
  • Save jameskoster/5181523 to your computer and use it in GitHub Desktop.
Save jameskoster/5181523 to your computer and use it in GitHub Desktop.
WooCommerce - Rename country
// Rename 'Republic of Ireland' to 'Ireland'
add_filter( 'woocommerce_countries', 'rename_ireland' );
function rename_ireland( $countries ) {
$countries['IE'] = 'Ireland';
return $countries;
}
@gaspas
Copy link

gaspas commented May 10, 2013

Just one correction in new name u start the string with double quotation and finish with single.

Thanks

@webtonic
Copy link

Hi, Where you make the change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment