diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-24 22:21:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-24 22:21:12 +0200 |
commit | 43b1e37210cee2f269ed8f42328a6bec8e50e880 (patch) | |
tree | 8806b3d69e23eae252143c28d9ddeec942515a4c /server-build | |
parent | e29051a5643c11d7a77ce86d6b568c4884fad342 (diff) | |
download | woocommerce-taler-43b1e37210cee2f269ed8f42328a6bec8e50e880.tar.gz woocommerce-taler-43b1e37210cee2f269ed8f42328a6bec8e50e880.tar.bz2 woocommerce-taler-43b1e37210cee2f269ed8f42328a6bec8e50e880.zip |
also support TESTKUDOS
Diffstat (limited to 'server-build')
-rw-r--r-- | server-build/QEMU-autobuild/KUDOS-WooCommerce-Support.php.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server-build/QEMU-autobuild/KUDOS-WooCommerce-Support.php.txt b/server-build/QEMU-autobuild/KUDOS-WooCommerce-Support.php.txt index a85e4d7..0ddcb3f 100644 --- a/server-build/QEMU-autobuild/KUDOS-WooCommerce-Support.php.txt +++ b/server-build/QEMU-autobuild/KUDOS-WooCommerce-Support.php.txt @@ -1,11 +1,12 @@ /** - * Support for the KUDOS currency. This goes into functions.php + * Support for the KUDOS and TESTKUDOS currency. This goes into functions.php * https://gist.github.com/woogists/72947b71e48a62f15f5548283d4ed00f#file-wc-add-currency-symbol-php */ add_filter( 'woocommerce_currencies', 'add_my_currency' ); function add_my_currency( $currencies ) { $currencies['KUDOS'] = __( 'KUDOS', 'woocommerce' ); + $currencies['TESTKUDOS'] = __( 'TESTKUDOS', 'woocommerce' ); return $currencies; } @@ -14,6 +15,7 @@ add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2); function add_my_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { case 'KUDOS': $currency_symbol = 'ク'; break; + case 'TESTKUDOS': $currency_symbol = 'テ'; break; } return $currency_symbol; } |