woocommerce_variable_empty_price_html

woocommerce_variable_empty_price_html

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_variable_empty_price_html') is found 1 times:

  • /includes/class-wc-product-variable.php line 166
    	public function get_price_html( $price = '' ) {
    		$prices = $this->get_variation_prices( true );
    
    		if ( empty( $prices['price'] ) ) {
    			$price = apply_filters( 'woocommerce_variable_empty_price_html', '', $this );
    		} else {
    			$min_price     = current( $prices['price'] );
    			$max_price     = end( $prices['price'] );
    			$min_reg_price = current( $prices['regular_price'] );
    			$max_reg_price = end( $prices['regular_price'] );