WC_Cart::get_totals()
Return all calculated totals.
{} It's a method of the class: WC_Cart{}
No Hooks.
Return
Array
.
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->get_totals();
Changelog
Since 3.2.0 | Introduced. |
Code of WC_Cart::get_totals() WC Cart::get totals WC 6.6.1
public function get_totals() { return empty( $this->totals ) ? $this->default_totals : $this->totals; }