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.9.8.1

apply_filters('woocommerce_variable_empty_price_html') is found 1 times:

  • /includes/class-wc-product-variable.php line 171
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    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'] );