WordPress filter hook

wcml_raw_price_amount

Fired by 61 WordPress plugins, running on 1.4M+ sites between them.

“WPML multi currency”

How to use wcml_raw_price_amount

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( 'wcml_raw_price_amount', function( $amount ) {
	// Change $amount here.
	return $amount;
}, 10, 1 );

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

61 plugins that fire wcml_raw_price_amount

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

  1. Google for WooCommerce icon Google for WooCommerce800,000+ installs apply_filters( 'wcml_raw_price_amount', (float) $regular_price, $currency ) src/Integration/WPML.php:233
  2. WPML Multilingual & Multicurrency for WooCommerce icon WPML Multilingual & Multicurrency for WooCommerce100,000+ installs apply_filters( 'wcml_raw_price_amount', $unformatted ) compatibility/GravityForms/MulticurrencyHooks.php:15
  3. Weight Based Shipping Table Rate for WooCommerce icon Weight Based Shipping Table Rate for WooCommerce100,000+ installs apply_filters( 'wcml_raw_price_amount', $value ) vendor_prefixed/wpdesk/wc-currency-switchers-integrations/src/Switcher/WCML/Converter.php:23
  4. Discount Rules for WooCommerce icon Discount Rules for WooCommerce100,000+ installs apply_filters( 'wcml_raw_price_amount', $price ) v2/App/Compatibility/MultiCurrencyByWPML.php:22
  5. Product Feed Manager for WooCommerce icon Product Feed Manager for WooCommerce90,000+ installs apply_filters( 'wcml_raw_price_amount', $price, $config->get_feed_currency() ) compatibility/Shims/WooDiscountRulesFlycart.php:103
  6. Customer Reviews for WooCommerce icon Customer Reviews for WooCommerce80,000+ installs apply_filters( 'wcml_raw_price_amount', floatval( $prod_temp->get_price() ), $currency ) includes/emails/class-cr-email-func.php:102
  7. WPC Product Bundles for WooCommerce icon WPC Product Bundles for WooCommerce30,000+ installs apply_filters( 'wcml_raw_price_amount', $base_amount ) includes/class-compatible.php:358
  8. PPOM icon PPOM20,000+ installs apply_filters( 'wcml_raw_price_amount', $numeric_price ) classes/plugin.class.php:982
  9. WPMR Google Feed Manager for WooCommerce icon WPMR Google Feed Manager for WooCommerce10,000+ installs apply_filters( 'wcml_raw_price_amount', $raw_price, $resolved_currency ) includes/application/wppfm-feed-processing-support.php:2331
  10. Pay for Payment for WooCommerce icon Pay for Payment for WooCommerce10,000+ installs apply_filters( 'wcml_raw_price_amount', $fee ) src/Integrations/Wcml.php:28
  11. Product Feed Manager for WooCommerce icon Product Feed Manager for WooCommerce10,000+ installs apply_filters( 'wcml_raw_price_amount', $original_price, $target_currency ) admin/class-rex-product-feed-actions.php:1321
  12. Flexible Product Fields (WooCommerce Product Addons) icon Flexible Product Fields (WooCommerce Product Addons)10,000+ installs apply_filters( 'wcml_raw_price_amount', $price ) classes/class-fpf-product-price.php:92
  13. B2BKing icon B2BKing10,000+ installs apply_filters( 'wcml_raw_price_amount', $price, $current_currency ) includes/class-b2bking-global-helper.php:2315
  14. YITH WooCommerce Gift Cards icon YITH WooCommerce Gift Cards10,000+ installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/class-yith-ywgc-cart-checkout.php:202
  15. Hungarian Pickup Points & Shipping Labels for WooCommerce icon Hungarian Pickup Points & Shipping Labels for WooCommerce7,000+ installs apply_filters( 'wcml_raw_price_amount', $value ) includes/class-helpers.php:1119
  16. WPify Woo icon WPify Woo5,000+ installs apply_filters( 'wcml_raw_price_amount', floatval( $price['value'] ) ) src/Modules/Prices/PricesModule.php:485
  17. UpsellWP icon UpsellWP5,000+ installs apply_filters( 'wcml_raw_price_amount', $price ) app/Modules/Compatibilities/WCML.php:102
  18. PiWeb Disable payment method / Partial payment for WooCommerce icon PiWeb Disable payment method / Partial payment for WooCommerce4,000+ installs apply_filters( 'wcml_raw_price_amount', (float)$price ) includes/class-common-cart.php:98
  19. AliNext icon AliNext4,000+ installs apply_filters( 'wcml_raw_price_amount', $priceRaw, $currentCurrency ) includes/classes/service/ProductService.php:295
  20. CDEKDelivery icon CDEKDelivery3,000+ installs apply_filters( 'wcml_raw_price_amount', $rule['value'], 'RUB' ) src/Actions/CalculateDeliveryAction.php:186
  21. PI Advanced Flat rate / Conditional shipping for WooCommerce icon PI Advanced Flat rate / Conditional shipping for WooCommerce2,000+ installs apply_filters( 'wcml_raw_price_amount', (float)$price ) includes/common.php:91
  22. PI Conditional cart fee / Extra charge rule for WooCommerce icon PI Conditional cart fee / Extra charge rule for WooCommerce2,000+ installs apply_filters( 'wcml_raw_price_amount', (float)$price ) includes/class-common-cart.php:138
  23. MStore API icon MStore API2,000+ installs apply_filters( 'wcml_raw_price_amount', (float) $base_price, $context['currency'] ) controllers/helpers/flutter-currency-helper.php:445
  24. Flexible PDF Coupons icon Flexible PDF Coupons2,000+ installs apply_filters( 'wcml_raw_price_amount', 100, $currency ) vendor_prefixed/wpdesk/wp-coupons-core/src/Coupons/Integration/WpmlHelper.php:33
  25. MyRewards icon MyRewards2,000+ installs apply_filters( 'wcml_raw_price_amount', $amount ) assets/lws-adminpanel/include/tools/conveniences.php:81
  26. 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( 'wcml_raw_price_amount', $value, get_woocommerce_currency() ) fish-and-ships.php:1085
  27. annasta Filters for WooCommerce icon annasta Filters for WooCommerce1,000+ installs apply_filters( 'wcml_raw_price_amount', $min_max_prices['min_price'], $current_currency ) code/class-a-w-f-frontend.php:5039
  28. Cryptocurrency Payment Gateway icon Cryptocurrency Payment Gateway300+ installs apply_filters( 'wcml_raw_price_amount', $price, $order->get_currency() ) cryptocurrency-payment-gateway.php:1049
  29. Web Directory plugin Free icon Web Directory plugin Free300+ installs apply_filters( 'wcml_raw_price_amount', $price, $currency ) directory/directory_payments_settings.php:307
  30. Table rate shipping for WooCommerce icon Table rate shipping for WooCommerce200+ installs apply_filters( 'wcml_raw_price_amount', $value ) includes/compatibility/compbl.wpml.php:141
  31. Product Feed Manager by Conversios: Google Shopping, TikTok, Meta & 100+ Channels icon Product Feed Manager by Conversios: Google Shopping, TikTok, Meta & 100+ Channels100+ installs apply_filters( 'wcml_raw_price_amount', $product_data['price'], $project_config['WCML'] ) includes/setup/GenerateFile/classes/class-get-products.php:3180
  32. avecdo for WooCommerce icon avecdo for WooCommerce100+ installs apply_filters( 'wcml_raw_price_amount', $metaRow->meta_value, $avecdoCurrency ) src/Models/Model.php:269
  33. DHL eCom Sweden icon DHL eCom Sweden80+ installs apply_filters( 'wcml_raw_price_amount', 1, $current_currency ) inc/woocommerce/DHL_ECOM_SE_MODEL_CHECKOUT.php:670
  34. BundleBoss icon BundleBoss80+ installs apply_filters( 'wcml_raw_price_amount', abs( $amount ) ) includes/pricing.php:321
  35. Recovero icon Recovero50+ installs apply_filters( 'wcml_raw_price_amount', 1.0, $currency ) includes/campaigns/class-ppl-acrw-campaigns-service.php:119
  36. Simpler Checkout icon Simpler Checkout40+ installs apply_filters( 'wcml_raw_price_amount', (float) $rate->get_cost(), $currency ) includes/Compatibility/multi-currency.php:39
  37. PrintPrice: STL & 3MF Price Calculator for WooCommerce icon PrintPrice: STL & 3MF Price Calculator for WooCommerce30+ installs apply_filters( 'wcml_raw_price_amount', $amount, $code ) print-price.php:2919
  38. NWS Product Filter icon NWS Product Filter10+ installs apply_filters( 'wcml_raw_price_amount', $max_price ) includes/class-nws-filter-functions.php:285
  39. Kuwadema icon Kuwadema10+ installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/class-currency.php:77
  40. Discount Master icon Discount Master10+ installs apply_filters( 'wcml_raw_price_amount', $probe ) includes/class-dmfwc-currency.php:39
  41. Phoenix German Market DHL Multi-Currency Fix for WooCommerce icon Phoenix German Market DHL Multi-Currency Fix for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount_eur, $to ) src/Currency/Multicurrency_Price_Converter.php:80
  42. J2T Loyalty icon J2T LoyaltyFewer than 10 installs apply_filters( 'wcml_raw_price_amount', 1, $currency ) includes/class-j2t-loyalty-engine.php:171
  43. Optogrid Eyeglasses for WooCommerce icon Optogrid Eyeglasses for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/logic-engine-functions.php:1232
  44. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', (float) $value ) inc/class-cbc-multilingual.php:177
  45. Mimeeq icon MimeeqFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $price ) src/php/Woo/CartHooks.php:4873
  46. Easy2Cuba for WooCommerce icon Easy2Cuba for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/class-e2c-checkout.php:547
  47. Beziworld icon BeziworldFewer than 10 installs apply_filters( 'wcml_raw_price_amount', 1000, $active ) src/Support/Environment.php:103
  48. Naxolabs Order Bump icon Naxolabs Order BumpFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/class-naxoorbu-discount.php:190
  49. PluginCity Minimum Order for WooCommerce icon PluginCity Minimum Order for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount, $active ) includes/class-currency.php:110
  50. PromoForge Smart Campaigns for WooCommerce icon PromoForge Smart Campaigns for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $price ) includes/class-promoforge-frontend.php:165
  51. Milardovich Extra Coupon Features icon Milardovich Extra Coupon FeaturesFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount, $to ) includes/Compat/MultiCurrency.php:113
  52. Cartnorm B2B icon Cartnorm B2BFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/class-compat.php:211
  53. Aiolos Checkout for WooCommerce icon Aiolos Checkout for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount, $current ) src/Compat/Currency.php:122
  54. Nanflows Sliding Cart icon Nanflows Sliding CartFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/class-compat.php:307
  55. Sendra Shipping Rules for WooCommerce icon Sendra Shipping Rules for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', 1000000 ) includes/class-sendra-extras.php:138
  56. Navidium Shipping Protection icon Navidium Shipping ProtectionFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount, $from_currency ) includes/class-navidium-currency.php:114
  57. NudgeSells icon NudgeSellsFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/class-nudgesells-currency.php:48
  58. Softminal B2B Suite for WooCommerce icon Softminal B2B Suite for WooCommerceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount, $active ) app/Compat/MultiCurrency.php:118
  59. PickPair icon PickPairFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount ) app/Integrations/MultiCurrency.php:68
  60. Ezhance icon EzhanceFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $converted, $to_currency ) includes/Compat/class-compatibility.php:199
  61. Configurator for Product Packages by Forge12 Interactive GmbH icon Configurator for Product Packages by Forge12 Interactive GmbHFewer than 10 installs apply_filters( 'wcml_raw_price_amount', $amount ) includes/Compatibility/Currency.php:53

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.