Woocommerce Currenncy Prefix

PHOTO EMBED

Mon Sep 06 2021 04:07:09 GMT+0000 (UTC)

Saved by @shadowtek

madd_filter('woocommerce_currency_symbol', 'alter_currency_symbol', 10, 2);
function alter_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'AUD': $custom_currency_symbol = 'AUD$'; break;
}
return $custom_currency_symbol;
}
content_copyCOPY