Skip to content

Instantly share code, notes, and snippets.

View thejamescollins's full-sized avatar

James Collins thejamescollins

View GitHub Profile
@thejamescollins
thejamescollins / functions.php
Last active August 29, 2015 13:57 — forked from simonlk/WooCommerce - Change Sort Code to BSB
WooCommerce - Change Sort Code to BSB
<?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';