Adding Custom Currency to WooCommerce

WooCommerce by default To add a custom currency in WooCommerce 2.0+, copy and paste this code in your theme functions.php file and swap out the currency code and symbol with your own. After saving changes, it should be available from your WooCommerce settings.

add_filter( ‘woocommerce_currencies’, ‘add_my_currency’ ); 
function add_my_currency( $currencies ) { 
 $currencies[‘ABC’] = __( ‘Currency name’, ‘woocommerce’ ); 
 return $currencies;
add_filter(‘woocommerce_currency_symbol’, ‘add_my_currency_symbol’, 10, 2); 
function add_my_currency_symbol( $currency_symbol, $currency ) 
 switch( $currency ) { 
 case ‘ABC’: 
 $currency_symbol = ‘$’; 
 return $currency_symbol;

Leave a Reply

Your email address will not be published. Required fields are marked *