Contact
Developers / Filter: bisnl_convert_price
  1. Home
  2. Back In Stock Notifier Lite
  3. Developers
  4. Filter: bisnl_convert_price
Developers

Filter: bisnl_convert_price

1 min readUpdated Nov 7, 2026

If you use a currency switcher that the plugin does not support, convert prices for emails with the bisnl_convert_price filter. It receives the amount in the store's base currency and the subscriber's currency code, and must return the converted amount.

add_filter( 'bisnl_convert_price', function ( $amount, $currency ) {
    // Return $amount converted to $currency.
    return $amount;
}, 10, 2 );

The filter is only called when the subscriber's currency differs from the store's base currency.