U2Code Product Multicurrency for WooCommerce 1.0.3 has 5 actions and 14 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when U2Code Product Multicurrency for WooCommerce fires an action
add_action( 'u2code_mc/currency_switched', function( $code, $previous ) {
// Your code runs here.
}, 10, 2 );
// Change a value U2Code Product Multicurrency for WooCommerce is about to use
add_filter( 'u2code_mc/available_gateways', function( $gateways, $arg2 ) {
// Change $gateways here.
return $gateways;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Premium hook: restrict the offered gateways for the active currency. The * free build has no listener. */ apply_filters( 'u2code_mc/available_gateways', $gateways, $this->manager->getCurrentCurrency() ); -
/** * Filter a converted amount. */ apply_filters( 'u2code_mc/converted_price', $converted, $amount, $this->getCurrentCurrency() ); -
/** * Filter the configured currencies. */ apply_filters( 'u2code_mc/currencies', $currencies ); -
/** * Fires after the visitor's currency changed. */ do_action( 'u2code_mc/currency_switched', $code, $previous ); -
/** * Filter the active currency code. */ apply_filters( 'u2code_mc/current_currency', $this->currentCode ); -
/** * Filter the detected currency for the current visitor. */ apply_filters( 'u2code_mc/detected_currency', $detected, $this ); -
/** * Premium unlock filter. Never hook this outside src/Premium/. */ apply_filters( 'u2code_mc/feature_enabled', false, $feature ); -
/** * Premium lookup for a fixed per-product price. The free build has no * listener, so this always resolves to null there. */ apply_filters( 'u2code_mc/fixed_price_override', null, $product, $prop, $this->manager->getCurrentCode() ); -
/** * Filter whether the switcher is hidden on the current page. */ apply_filters( 'u2code_mc/hide_switcher', $hide ); -
/** * Filter the integration list before booting. */ apply_filters( 'u2code_mc/integrations', $integrations, $this->manager ); -
/** * Fires once every service is constructed and hooked. Third-party code can * safely use \U2Code\Multicurrency\API from here on. */ do_action( 'u2code_mc/loaded', $container ); -
/** * Fires after the conversion snapshot was written to an order. */ do_action( 'u2code_mc/order_meta_saved', $order, $rate ); -
/** * Filter the available exchange-rate providers. */ apply_filters( 'u2code_mc/rate_providers', $providers ); -
/** * Fires after a rate update run. */ do_action( 'u2code_mc/rates_updated', $summary ); -
/** * Filter the plugin settings. */ apply_filters( 'u2code_mc/settings', $this->settings ); -
/** * Filter whether prices are converted in the current context. */ apply_filters( 'u2code_mc/should_convert', $should ); -
/** * Skip the conversion of one product prop. Dynamic-pricing plugins that * compose a price from already-converted amounts (Tiered Pricing Table's cart * price, for instance) return true so it is not converted twice. */ apply_filters( 'u2code_mc/skip_product_conversion', false, $product, $prop ); -
/** * Filter the switcher arguments before rendering. */ apply_filters( 'u2code_mc/switcher_args', $args ); -
do_action( 'upmfw_fs_loaded' );
Generated from U2Code Product Multicurrency for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: