WC_Cart_Totals::calculate
Run all calculation methods on the given items in sequence.
Method of the class: WC_Cart_Totals{}
No Hooks.
Returns
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() WC Cart Totals::calculate code WC 10.4.3
protected function calculate() {
$this->calculate_item_totals();
$this->calculate_shipping_totals();
$this->calculate_fee_totals();
$this->calculate_totals();
}