WC_Cart_Totals::calculate()protectedWC 3.2.0

Run all calculation methods on the given items in sequence.

Метод класса: WC_Cart_Totals{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->calculate();

Список изменений

С версии 3.2.0 Введена.

Код WC_Cart_Totals::calculate() WC 8.7.0

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