Skip to content

Instantly share code, notes, and snippets.

View PlanBrewski's full-sized avatar
💭
introducing bugs into production.

Edward McIntyre PlanBrewski

💭
introducing bugs into production.
View GitHub Profile
@kittenlane
kittenlane / add_currency_code_suffix.php
Created May 3, 2015 22:49
Add currency code as suffix to prices in WooCommerce
//* http://www.codemyownroad.com/add-currency-code-suffix-prices-woocommerce/
// Location: add to functions.php
// Output: displays $0.00 AUD on all pages
function addPriceSuffix($format, $currency_pos) {
switch ( $currency_pos ) {
case 'left' :
$currency = get_woocommerce_currency();
$format = '%1$s%2$s ' . $currency;
break;