WordPress filter hook
woocommerce_variable_empty_price_html
Defined by WooCommerce and fired by 17 plugins in total, running on 7.1M+ sites between them.
How to use woocommerce_variable_empty_price_html
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_variable_empty_price_html', function( $value, $product ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from FunnelKit's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
17 plugins that fire woocommerce_variable_empty_price_html
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $this )includes/class-wc-product-variable.php:188 -
Germanized for WooCommerce70,000+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $this )includes/class-wc-gzd-product-variable.php:214 -
FunnelKit30,000+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )admin/rest-api-helpers/class-wffn-rest-api-helpers.php:419 -
Product Table & List Builder for WooCommerce10,000+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )templates/price.php:48 -
Product Feed for Google Shopping, Microsoft Advertising and 40+ Channels for WooCommerce Merchant2,000+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )helpers/helper.php:1011 -
FooSales700+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $wc_product )admin/helpers/foosales-api-helper.php:197 -
Milo Subscriptions200+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $this )includes/product/class-product-variable-subscription.php:92 -
Category Discounts for WooCommerce30+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )includes/class-woo-cat-disc-public.php:57 -
Pizza builder for WooCommerce30+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )includes/pizza-display.php:53 -
OpenGraphiq Lite20+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )admin/class-opengraphiq-admin.php:1087 -
Cryptocurrency Product for WooCommerce20+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )cryptocurrency-product-for-woocommerce.php:866 -
TABLEiT20+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )templates/price.php:47 -
Klassifieds for WooCommerce20+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $this )includes/class-klassifieds-product-variable.php:106 -
Frisbii Billing20+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $this )includes/WC_Product_Reepay_Variable_Subscription.php:43 -
Subscriptions & Recurring Payments for WooCommerce10+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $this )inc/classes/class-wc-product-variable-subscription.php:102 -
Product Category Discounts for Woo10+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )includes/class-pro-cat-disc-public.php:56 -
Themex Currency Manager for WooCommerce10+ installs
apply_filters( 'woocommerce_variable_empty_price_html', '', $product )includes/class-wc-integration.php:429
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.