WC_Cart::get_totals_var( string $key )
Get a total.
Description Description
Parameters Parameters
- $key
-
(Required) Key of element in $totals array.
Return Return
(mixed)
Source Source
File: includes/class-wc-cart.php
protected function get_totals_var( $key ) { return isset( $this->totals[ $key ] ) ? $this->totals[ $key ] : $this->default_totals[ $key ]; }
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |