WordPress filter hook
woocommerce_currency_symbol
Defined by WooCommerce and fired by 14 plugins in total, running on 7.2M+ sites between them.
How to use woocommerce_currency_symbol
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_currency_symbol', function( $currency_symbol, $currency ) {
// Change $currency_symbol here.
return $currency_symbol;
}, 10, 2 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
14 plugins that fire woocommerce_currency_symbol
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency )includes/wc-core-functions.php:726 -
Advanced Order Export For WooCommerce100,000+ installs
apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency )classes/core/class-wc-order-export-order-fields.php:723 -
WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels50,000+ installs
apply_filters( 'woocommerce_currency_symbol', $wc_currency_symbol, $user_currency )admin/class-wf-woocommerce-packing-list-admin.php:1902 -
Booster for WooCommerce30,000+ installs
apply_filters( 'woocommerce_currency_symbol', get_woocommerce_currency_symbol(), get_woocommerce_currency() )includes/class-wcj-multicurrency.php:888 -
FunnelKit30,000+ installs
apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency )includes/wffn-functions.php:245 -
Currency Switcher for WooCommerce10,000+ installs
apply_filters( 'woocommerce_currency_symbol', get_woocommerce_currency_symbol(), get_woocommerce_currency() )includes/class-alg-switcher-third-party-compatibility.php:268 -
Freesoul Deactivate Plugins8,000+ installs
apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency )inc/fdp-woocommerce.php:215 -
Flexible PDF Invoices for WooCommerce & WordPress6,000+ installs
apply_filters( 'woocommerce_currency_symbol', $symbol, $currency_option['currency'] )vendor_prefixed/wpdesk/flexible-invoices-core/src/Invoices/Helpers/Currency.php:91 -
Lucky Wheel for WooCommerce1,000+ installs
apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency )plugins/curcy.php:90 -
Travelly1,000+ installs
apply_filters( 'woocommerce_currency_symbol', $symbol, $currency )inc/TTBM_Currency_Fallback.php:43 -
WebPOS40+ installs
apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency )includes/plugins/curcy.php:157 -
Shop Currency Switcher for WooCommerce10+ installs
apply_filters( 'woocommerce_currency_symbol', get_woocommerce_currency_symbol(), get_woocommerce_currency() )includes/class-alg-switcher-third-party-compatibility.php:221 -
GoToViaR10+ installs
apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency )includes/Handlers/GTVR_WooCommerce.php:246 -
Product Video GeneratorFewer than 10 installs
apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency )Classes/DigitalSignage4_Tools.php:378
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.