Skip to content

Instantly share code, notes, and snippets.

@simonlk
Created January 8, 2014 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save simonlk/8312649 to your computer and use it in GitHub Desktop.
Save simonlk/8312649 to your computer and use it in GitHub Desktop.
Change "Sort Code" to "BSB" for Bacs payment method
function wpse_77783_woo_bacs_ibn($translation, $text, $domain) {
if ($domain == 'woocommerce') {
switch ($text) {
case 'Sort Code':
$translation = 'BSB';
break;
}
}
return $translation;
}
add_filter('gettext', 'wpse_77783_woo_bacs_ibn', 10, 3);
@Edwynn
Copy link

Edwynn commented May 3, 2021

How can I translate BIC / Swift? I use this code but not working.

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