WordPress filter hook

wc_aelia_cs_enabled_currencies

Fired by 11 WordPress plugins, running on 489K+ sites between them.

How to use wc_aelia_cs_enabled_currencies

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'wc_aelia_cs_enabled_currencies', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from Wallet for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

11 plugins that fire wc_aelia_cs_enabled_currencies

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Breeze Cache icon Breeze Cache300,000+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array() ) inc/compatibility/class-breeze-aelia-compatibility.php:95
  2. Product Feed Manager for WooCommerce icon Product Feed Manager for WooCommerce90,000+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', $base ) compatibility/Providers/CurrencyCompatibilityProvider.php:83
  3. Product Filter for WooCommerce by WBW icon Product Filter for WooCommerce by WBW50,000+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array() ) modules/index/class-woobewoo-pf-index.php:836
  4. Wholesale Suite icon Wholesale Suite20,000+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array( self::shop_base_currency() ) ) includes/class-wwp-aelia-currency-switcher-integration-helper.php:54
  5. Wallet for WooCommerce icon Wallet for WooCommerce20,000+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array( $base ) ) includes/multicurrency/providers/class-woo-wallet-currency-provider-aelia.php:70
  6. EU VAT Assistant for WooCommerce icon EU VAT Assistant for WooCommerce5,000+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array(get_option('woocommerce_currency'), $this->vat_currency()) ) src/lib/classes/settings/settings.php:228
  7. Advanced Shipping Rates for WooCommerce: Flexible Table Rate Shipping Rules icon Advanced Shipping Rates for WooCommerce: Flexible Table Rate Shipping Rules2,000+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array( $main_currency ) ) fish-and-ships.php:1198
  8. WholesaleX icon WholesaleX2,000+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array( self::get_shop_base_currency() ) ) includes/compatibility/aeila_currency_switcher.php:59
  9. Cryptocurrency Payment Gateway icon Cryptocurrency Payment Gateway300+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array( $wc_currency ) ) cryptocurrency-payment-gateway.php:1713
  10. Business Bloomer Advanced Manual Orders for WooCommerce icon Business Bloomer Advanced Manual Orders for WooCommerce10+ installs apply_filters( 'wc_aelia_cs_enabled_currencies', array() ) includes/amowc-settings.php:304
  11. QuoteCart Connector icon QuoteCart ConnectorFewer than 10 installs apply_filters( 'wc_aelia_cs_enabled_currencies', array( $base ) ) inc/class-rest-api.php:182

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.