WC_Cart_Totals::calculate()protectedWC 3.2.0

Run all calculation methods on the given items in sequence.

Method of the class: WC_Cart_Totals{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->calculate();

Changelog

Since 3.2.0 Introduced.

WC_Cart_Totals::calculate() code WC 9.6.0

protected function calculate() {
	$this->calculate_item_totals();
	$this->calculate_shipping_totals();
	$this->calculate_fee_totals();
	$this->calculate_totals();
}