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.


Top ↑

Source Source

File: includes/class-wc-cart-totals.php

	protected function set_total( $key = 'total', $total ) {
		$this->totals[ $key ] = $total;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.