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:

functions.php
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.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_variable_empty_price_html', '', $this ) includes/class-wc-product-variable.php:188
  2. Germanized for WooCommerce icon Germanized for WooCommerce70,000+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $this ) includes/class-wc-gzd-product-variable.php:214
  3. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $product ) admin/rest-api-helpers/class-wffn-rest-api-helpers.php:419
  4. Product Table & List Builder for WooCommerce icon Product Table & List Builder for WooCommerce10,000+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $product ) templates/price.php:48
  5. Product Feed for Google Shopping, Microsoft Advertising and 40+ Channels for WooCommerce Merchant icon 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
  6. FooSales icon FooSales700+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $wc_product ) admin/helpers/foosales-api-helper.php:197
  7. Milo Subscriptions icon Milo Subscriptions200+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $this ) includes/product/class-product-variable-subscription.php:92
  8. Category Discounts for WooCommerce icon Category Discounts for WooCommerce30+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $product ) includes/class-woo-cat-disc-public.php:57
  9. Pizza builder for WooCommerce icon Pizza builder for WooCommerce30+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $product ) includes/pizza-display.php:53
  10. OpenGraphiq Lite icon OpenGraphiq Lite20+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $product ) admin/class-opengraphiq-admin.php:1087
  11. Cryptocurrency Product for WooCommerce icon Cryptocurrency Product for WooCommerce20+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $product ) cryptocurrency-product-for-woocommerce.php:866
  12. TABLEiT icon TABLEiT20+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $product ) templates/price.php:47
  13. Klassifieds for WooCommerce icon Klassifieds for WooCommerce20+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $this ) includes/class-klassifieds-product-variable.php:106
  14. Frisbii Billing icon Frisbii Billing20+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $this ) includes/WC_Product_Reepay_Variable_Subscription.php:43
  15. Subscriptions & Recurring Payments for WooCommerce icon Subscriptions & Recurring Payments for WooCommerce10+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $this ) inc/classes/class-wc-product-variable-subscription.php:102
  16. Product Category Discounts for Woo icon Product Category Discounts for Woo10+ installs apply_filters( 'woocommerce_variable_empty_price_html', '', $product ) includes/class-pro-cat-disc-public.php:56
  17. Themex Currency Manager for WooCommerce icon 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.