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
<?php | |
/** | |
* Rename WooCommmerce's "Sort Code" to "BSB". Useful for Australian stores | |
* Ref: https://gist.github.com/om4james/9885791 | |
*/ | |
function woocommerce_sort_code_rename_to_bsb($translation, $text, $domain) { | |
if ($domain == 'woocommerce') { | |
switch ($text) { | |
case 'Sort Code': | |
$translation = 'BSB'; |