woocommerce_get_variation_price

woocommerce_get_variation_price

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_get_variation_price') is found 1 times:

  • /includes/class-wc-product-variable.php line 148
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    public function get_variation_price( $min_or_max = 'min', $for_display = false ) {
        $prices = $this->get_variation_prices( $for_display );
        $price  = 'min' === $min_or_max ? current( $prices['price'] ) : end( $prices['price'] );
     
        return apply_filters( 'woocommerce_get_variation_price', $price, $this, $min_or_max, $for_display );
    }
     
    /**
     * Returns the price in html format.
     *
     * Note: Variable prices do not show suffixes like other product types. This