Change or remove WooCommerce currency symbols

Estimated reading: 1 minute 208 views

Removing WooCommerce currency symbols is fairly easy. You can use 'woocommerce_currency_symbol' action hook to remove or change currency symbol.

// Remove all currency symbols
function codeAstrology_remove_wc_currency_symbols( $currency_symbol, $currency ) {
    $currency_symbol = '';
    return $currency_symbol;
}
add_filter('woocommerce_currency_symbol', 'codeAstrology_remove_wc_currency_symbols', 10, 2);

Add that code in your theme/child theme's functions.php file or use the 'Code Snippets' plugin to add that code. Take a look

CONTENTS