Skip to content

Instantly share code, notes, and snippets.

@wbcomdev
Created May 18, 2021 04:58
Show Gist options
  • Select an option

  • Save wbcomdev/849c1a794104c5aecbbeed8ecd285018 to your computer and use it in GitHub Desktop.

Select an option

Save wbcomdev/849c1a794104c5aecbbeed8ecd285018 to your computer and use it in GitHub Desktop.
/**
* Rename a country.
*/
function wb_rename_ireland( $countries ) {
$countries['IE'] = 'Ireland';
return $countries;
}
add_filter( 'woocommerce_countries', 'wb_rename_ireland' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment