WC_Cart::get_totals
Return all calculated totals.
Method of the class: WC_Cart{}
No Hooks.
Returns
Array.
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->get_totals();
Changelog
| Since 3.2.0 | Introduced. |
WC_Cart::get_totals() WC Cart::get totals code WC 10.7.0
public function get_totals() {
return empty( $this->totals ) ? $this->default_totals : $this->totals;
}