woocommerce_get_variation_price

woocommerce_get_variation_price

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_get_variation_price') is found 1 times:

  • /includes/class-wc-product-variable.php line 143
    	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