WordPress at Your Fingertips
function is not described

WC_Cart_Totals::calculate() protected WC 3.2.0

Run all calculation methods on the given items in sequence.

{} It's a method of the class: WC_Cart_Totals{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.2.0 Introduced.

Code of WC_Cart_Totals::calculate() WC 5.9.0

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