Created
January 8, 2014 06:28
-
-
Save simonlk/8312649 to your computer and use it in GitHub Desktop.
Change "Sort Code" to "BSB" for Bacs payment method
This file contains 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
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I translate BIC / Swift? I use this code but not working.