WC_Cart::get_totals()publicWC 3.2.0

Return all calculated totals.

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

Хуков нет.

Возвращает

Массив.

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

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

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

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

Код WC_Cart::get_totals() WC 8.7.0

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