WC_Product_Variable::get_variation_regular_price()publicWC 1.0

Get the min or max variation regular price.

Method of the class: WC_Product_Variable{}

Return

String.

Usage

$WC_Product_Variable = new WC_Product_Variable();
$WC_Product_Variable->get_variation_regular_price( $min_or_max, $for_display );
$min_or_max(string)
Min or max price.
Default: 'min'
$for_display(true|false)
If true, prices will be adapted for display based on the woocommerce_tax_display_shop setting (including or excluding taxes).
Default: false

WC_Product_Variable::get_variation_regular_price() code WC 9.4.2

public function get_variation_regular_price( $min_or_max = 'min', $for_display = false ) {
	$prices = $this->get_variation_prices( $for_display );
	$price  = 'min' === $min_or_max ? current( $prices['regular_price'] ) : end( $prices['regular_price'] );

	return apply_filters( 'woocommerce_get_variation_regular_price', $price, $this, $min_or_max, $for_display );
}