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:

functions.php
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.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency ) includes/wc-core-functions.php:726
  2. Advanced Order Export For WooCommerce icon 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
  3. WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels icon 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
  4. Booster for WooCommerce icon Booster for WooCommerce30,000+ installs apply_filters( 'woocommerce_currency_symbol', get_woocommerce_currency_symbol(), get_woocommerce_currency() ) includes/class-wcj-multicurrency.php:888
  5. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency ) includes/wffn-functions.php:245
  6. Currency Switcher for WooCommerce icon 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
  7. Freesoul Deactivate Plugins icon Freesoul Deactivate Plugins8,000+ installs apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency ) inc/fdp-woocommerce.php:215
  8. Flexible PDF Invoices for WooCommerce & WordPress icon 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
  9. Lucky Wheel for WooCommerce icon Lucky Wheel for WooCommerce1,000+ installs apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency ) plugins/curcy.php:90
  10. Travelly icon Travelly1,000+ installs apply_filters( 'woocommerce_currency_symbol', $symbol, $currency ) inc/TTBM_Currency_Fallback.php:43
  11. WebPOS icon WebPOS40+ installs apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency ) includes/plugins/curcy.php:157
  12. Shop Currency Switcher for WooCommerce icon 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
  13. GoToViaR icon GoToViaR10+ installs apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency ) includes/Handlers/GTVR_WooCommerce.php:246
  14. Product Video Generator icon 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.