mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-02 12:02:25 +08:00
10 lines
315 B
Text
10 lines
315 B
Text
function remove_wc_currency_symbol( $currency_symbol, $currency ) {
|
|
{
|
|
$currency_symbol = '';
|
|
if ( is_cart() || is_checkout()) {
|
|
$currency_symbol = '$';
|
|
}
|
|
return $currency_symbol;
|
|
}
|
|
}
|
|
add_filter('woocommerce_currency_symbol', 'remove_wc_currency_symbol', 10, 2);
|