WordPress filter hook

wc_price_args

Fired by 62 WordPress plugins, running on 8.1M+ sites between them.

How to use wc_price_args

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

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

62 plugins that fire wc_price_args

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

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), 'in_span' => true, 'aria-hidden' => false, ) ) ) includes/wc-formatting-functions.php:601
  2. YITH WooCommerce Wishlist icon YITH WooCommerce Wishlist400,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  3. YITH WooCommerce Compare icon YITH WooCommerce Compare100,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  4. YITH WooCommerce Quick View icon YITH WooCommerce Quick View80,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  5. YITH WooCommerce Ajax Product Filter icon YITH WooCommerce Ajax Product Filter70,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  6. YITH WooCommerce Catalog Mode icon YITH WooCommerce Catalog Mode60,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  7. FOX icon FOX50,000+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => $this->decimal_sep, 'thousand_separator' => $this->thousands_sep, 'decimals' => $decimals, 'price_format' => $this->woocommerce_price_format(), ) ) ) classes/woocs.php:3981
  8. Advanced Product Fields (Product Addons) for WooCommerce icon Advanced Product Fields (Product Addons) for WooCommerce50,000+ installs apply_filters( 'wc_price_args', [ 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => $display_settings['decimal'], 'thousand_separator' => $display_settings['thousand'], 'decimals' => $display_settings['decimals'], 'price_format' => $display_settings['format'] ] ) includes/classes/class-helper.php:94
  9. YITH WooCommerce Ajax Search icon YITH WooCommerce Ajax Search30,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  10. Booster for WooCommerce icon Booster for WooCommerce30,000+ installs apply_filters( 'wc_price_args', array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) includes/class-wcj-multicurrency.php:877
  11. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'wc_price_args', array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) admin/class-wffn-admin-dashboard-widget.php:65
  12. CURCY icon CURCY20,000+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) includes/data.php:1323
  13. YITH WooCommerce Product Add-Ons icon YITH WooCommerce Product Add-Ons20,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  14. YITH WooCommerce Product Gallery & Image Zoom icon YITH WooCommerce Product Gallery & Image Zoom10,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  15. YITH Request a Quote for WooCommerce icon YITH Request a Quote for WooCommerce10,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  16. YITH WooCommerce Badge Management icon YITH WooCommerce Badge Management10,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  17. YITH WooCommerce Gift Cards icon YITH WooCommerce Gift Cards10,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  18. Currency Switcher for WooCommerce icon Currency Switcher for WooCommerce10,000+ installs apply_filters( 'wc_price_args', array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) includes/class-alg-switcher-third-party-compatibility.php:260
  19. YITH Infinite Scrolling icon YITH Infinite Scrolling9,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  20. YITH Color and Label Variations for WooCommerce icon YITH Color and Label Variations for WooCommerce8,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  21. YITH WooCommerce Brands Add-On icon YITH WooCommerce Brands Add-On8,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  22. YITH Frequently Bought Together for WooCommerce icon YITH Frequently Bought Together for WooCommerce7,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  23. YITH WooCommerce Order & Shipment Tracking icon YITH WooCommerce Order & Shipment Tracking6,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  24. YITH WooCommerce Subscription icon YITH WooCommerce Subscription6,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  25. YITH WooCommerce Affiliates icon YITH WooCommerce Affiliates6,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  26. YITH Pre-Order for WooCommerce icon YITH Pre-Order for WooCommerce5,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  27. Coupon Affiliates icon Coupon Affiliates5,000+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => get_option( 'woocommerce_currency' ), 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) inc/functions/functions-calculate-order.php:2706
  28. YITH Essential Kit for WooCommerce #1 icon YITH Essential Kit for WooCommerce #14,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  29. YITH WooCommerce Product Slider Carousel icon YITH WooCommerce Product Slider Carousel4,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  30. Thanko Thank You Page Customizer for WooCommerce icon Thanko Thank You Page Customizer for WooCommerce3,000+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => get_option( 'woocommerce_currency' ), 'decimal_separator' => get_option( 'woocommerce_price_decimal_sep' ), 'thousand_separator' => get_option( 'woocommerce_price_thousand_sep' ), 'decimals' => get_option( 'woocommerce_price_num_decimals', 2 ), 'price_format' => get_woocommerce_price_format(), ) ) ) frontend/account.php:154
  31. YITH WooCommerce Tab Manager icon YITH WooCommerce Tab Manager3,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  32. YITH WooCommerce Product Bundles icon YITH WooCommerce Product Bundles3,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  33. YITH WooCommerce Waitlist icon YITH WooCommerce Waitlist3,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  34. YITH WooCommerce Featured Video icon YITH WooCommerce Featured Video3,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  35. Custom Price for WooCommerce icon Custom Price for WooCommerce3,000+ installs apply_filters( 'wc_price_args', wp_parse_args($args, ['decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals()]) ) vendor_prefixed/wpdesk/custom-price-for-woocommerce-core/src/Helper.php:728
  36. YITH WooCommerce Popup icon YITH WooCommerce Popup2,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  37. Coupzy Coupon Box for WooCommerce icon Coupzy Coupon Box for WooCommerce1,000+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => get_option( 'woocommerce_currency' ), 'decimal_separator' => get_option( 'woocommerce_price_decimal_sep' ), 'thousand_separator' => get_option( 'woocommerce_price_thousand_sep' ), 'decimals' => get_option( 'woocommerce_price_num_decimals', 2 ), 'price_format' => get_woocommerce_price_format(), ) ) ) admin/admin.php:89
  38. Lucky Wheel for WooCommerce icon Lucky Wheel for WooCommerce1,000+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => get_option( 'woocommerce_currency' ), 'decimal_separator' => get_option( 'woocommerce_price_decimal_sep' ), 'thousand_separator' => get_option( 'woocommerce_price_thousand_sep' ), 'decimals' => get_option( 'woocommerce_price_num_decimals', 2 ), 'price_format' => get_woocommerce_price_format(), ) ) ) admin/admin.php:78
  39. Multi Currency, Currency Switcher, Exchange Rates for WooCommerce icon Multi Currency, Currency Switcher, Exchange Rates for WooCommerce1,000+ installs apply_filters( 'wc_price_args', wp_parse_args($args, array( 'ex_tax_label' => false, 'currency' => isset($args['currency']) ? $args['currency'] : Currency_Manager::get_currency_code(), 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format() )) ) lib/Price_Manager.php:100
  40. YITH PayPal Express Checkout for WooCommerce icon YITH PayPal Express Checkout for WooCommerce1,000+ installs apply_filters( 'wc_price_args', $args ) plugin-fw/yit-functions.php:987
  41. Product Options and Price Calculation Formulas for WooCommerce icon Product Options and Price Calculation Formulas for WooCommerce1,000+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, $defaults ) ) includes/uni-cpo-core-functions.php:1038
  42. Phone Orders for WooCommerce icon Phone Orders for WooCommerce1,000+ installs apply_filters( 'wc_price_args', array( 'currency' => get_woocommerce_currency(), 'currency_symbol' => get_woocommerce_currency_symbol(), 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) classes/class-wc-phone-orders-main.php:142
  43. WPSyncSheets For WooCommerce icon WPSyncSheets For WooCommerce600+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) includes/product/compatibility/class-wpsslw-default-headers.php:101
  44. J Cart Upsell and Cross-sell for WooCommerce icon J Cart Upsell and Cross-sell for WooCommerce200+ installs apply_filters( 'wc_price_args', wp_parse_args( [], array( 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), )) ) helpers/Helpers.php:15
  45. In3 On-site Messaging plug-in for WooCommerce icon In3 On-site Messaging plug-in for WooCommerce200+ installs apply_filters( 'wc_price_args', wp_parse_args( [], array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) includes/functions.php:9
  46. Salevo Boost Sales for WooCommerce icon Salevo Boost Sales for WooCommerce200+ installs apply_filters( 'wc_price_args', array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) includes/data.php:245
  47. Advanced Product Information for WooCommerce icon Advanced Product Information for WooCommerce200+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) frontend/coupon.php:120
  48. Shopready icon Shopready100+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) src/extension/elegrid/hooks/product/Grid_Flip_Center_Structure.php:223
  49. AMP WooCommerce icon AMP WooCommerce90+ installs apply_filters( 'wc_price_args', wp_parse_args($args, array( 'ex_tax_label' => false, 'currency' => '', 'decimals' => wc_get_price_decimals(), 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'price_format' => get_woocommerce_price_format(), ) ) ) templates/single-product/add-to-cart/variable.php:47
  50. Splitit for WooCommerce icon Splitit for WooCommerce80+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) splitIt-flexfields-payment-gateway.php:7319
  51. OpenPOS Lite icon OpenPOS Lite60+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) lib/class-op-woo.php:4997
  52. SprayPay icon SprayPay50+ installs apply_filters( 'wc_price_args', wp_parse_args( [], array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) includes/functions.php:9
  53. SMM API icon SMM API40+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) plugin-fw/smm-functions.php:888
  54. Ultimate Integration for Telegram icon Ultimate Integration for Telegram20+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), 'in_span' => true, 'aria-hidden' => false, ) ) ) ultimate-integration-for-telegram.php:223
  55. Radin app icon Radin app10+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) includes/API/Class/Config_Radinapp.php:11
  56. Profitblue icon Profitblue10+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) src/Helpers/Helper.php:109
  57. Shop Currency Switcher for WooCommerce icon Shop Currency Switcher for WooCommerce10+ installs apply_filters( 'wc_price_args', array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) includes/class-alg-switcher-third-party-compatibility.php:213
  58. Step-By-Step Ordering System for WooCommerce icon Step-By-Step Ordering System for WooCommerce10+ installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) includes/widgets/sbs-cart-totals.php:134
  59. Currency Switcher for WooCommerce icon Currency Switcher for WooCommerce10+ installs apply_filters( 'wc_price_args', wp_parse_args($args, array( 'ex_tax_label' => false, 'currency' => '', 'symbol' => '', 'decimal_separator' => $this->decimal_sep, 'thousand_separator' => $this->thousands_sep, 'decimals' => $decimals, 'price_format' => $this->acowcs_woocommerce_price_format(isset($args['position']) ? $args['position'] : false, $loop = true) )) ) includes/class-acowcs-public.php:557
  60. Kuroneko Daikin Atobarai Service for Woo icon Kuroneko Daikin Atobarai Service for Woo10+ installs apply_filters( 'wc_price_args', array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) includes/kuatowc-functions.php:69
  61. Rooster One icon Rooster One10+ installs apply_filters( 'wc_price_args', array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) includes/dmm/services/class-aieo-dmm-bundle-card.php:289
  62. D7SMS for Woocommerce icon D7SMS for WoocommerceFewer than 10 installs apply_filters( 'wc_price_args', wp_parse_args( $args, array( 'ex_tax_label' => false, 'currency' => '', 'decimal_separator' => wc_get_price_decimal_separator(), 'thousand_separator' => wc_get_price_thousand_separator(), 'decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), ) ) ) plugin-fw/d7-functions.php:635

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.