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:
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.
-
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 -
YITH WooCommerce Wishlist400,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Compare100,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Quick View80,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Ajax Product Filter70,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Catalog Mode60,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
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 -
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 -
YITH WooCommerce Ajax Search30,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
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 -
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 -
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 -
YITH WooCommerce Product Add-Ons20,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Product Gallery & Image Zoom10,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH Request a Quote for WooCommerce10,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Badge Management10,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Gift Cards10,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
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 -
YITH Infinite Scrolling9,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH Color and Label Variations for WooCommerce8,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Brands Add-On8,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH Frequently Bought Together for WooCommerce7,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Order & Shipment Tracking6,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Subscription6,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Affiliates6,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH Pre-Order for WooCommerce5,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
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 -
YITH Essential Kit for WooCommerce #14,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Product Slider Carousel4,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
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 -
YITH WooCommerce Tab Manager3,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Product Bundles3,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Waitlist3,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
YITH WooCommerce Featured Video3,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
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 -
YITH WooCommerce Popup2,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
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 -
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 -
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 -
YITH PayPal Express Checkout for WooCommerce1,000+ installs
apply_filters( 'wc_price_args', $args )plugin-fw/yit-functions.php:987 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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.