Last active
April 17, 2016 17:09
-
-
Save jameskoster/5181523 to your computer and use it in GitHub Desktop.
WooCommerce - Rename country
This file contains hidden or 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
// Rename 'Republic of Ireland' to 'Ireland' | |
add_filter( 'woocommerce_countries', 'rename_ireland' ); | |
function rename_ireland( $countries ) { | |
$countries['IE'] = 'Ireland'; | |
return $countries; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just one correction in new name u start the string with double quotation and finish with single.
Thanks