WC_Cart_Totals::set_total( string $key, int $total )
Set a single total.
Description Description
Parameters Parameters
- $key
-
(Required) Total name you want to set.
- $total
-
(Required) Total to set.
Source Source
File: includes/class-wc-cart-totals.php
protected function set_total( $key = 'total', $total ) { $this->totals[ $key ] = $total; }
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |