Last active
October 3, 2020 19:08
-
-
Save woogists/3d817a0d7b1572542a4ec2f290fec504 to your computer and use it in GitHub Desktop.
[General Snippets] Rename a country in WooCommerce
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 a country | |
| */ | |
| 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