WC_Cart::get_totals │ public │ WC 3.2.0

Return all calculated totals.

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

Хуков нет.

Возвращает

array.

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

$WC_Cart = new WC_Cart();
$WC_Cart->get_totals();

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

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

Код WC_Cart::get_totals() WC 11.2.1

public function get_totals() {
	return empty( $this->totals ) ? $this->default_totals : $this->totals;
}