WordPress filter hook
wc_aelia_cs_product_base_currency
Fired by 2 WordPress plugins, running on 22K+ sites between them.
How to use wc_aelia_cs_product_base_currency
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( 'wc_aelia_cs_product_base_currency', function( $default_currency, $product_id ) {
// Change $default_currency here.
return $default_currency;
}, 10, 2 );Argument names come from Wholesale Suite's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
2 plugins that fire wc_aelia_cs_product_base_currency
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Wholesale Suite20,000+ installs
apply_filters( 'wc_aelia_cs_product_base_currency', $default_currency, $product_id )includes/class-wwp-aelia-currency-switcher-integration-helper.php:79 -
WholesaleX2,000+ installs
apply_filters( 'wc_aelia_cs_product_base_currency', $default_currency, $product_id )includes/compatibility/aeila_currency_switcher.php:84
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.