WC_Cart_Totals::get_totals( bool $in_cents = false )
Get all totals with or without precision (in cents).
Description Description
Parameters Parameters
- $in_cents
-
(Optional) Should the totals be returned in cents, or without precision.
Default value: false
Return Return
(array.)
Source Source
File: includes/class-wc-cart-totals.php
public function get_totals( $in_cents = false ) { return $in_cents ? $this->totals : wc_remove_number_precision_deep( $this->totals ); }
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |