WC_Cart::set_totals( array $value = array() )

Set all calculated totals.


Description Description


Parameters Parameters

$value

(Optional) Value to set.

Default value: array()


Top ↑

Source Source

File: includes/class-wc-cart.php

	public function set_totals( $value = array() ) {
		$this->totals = wp_parse_args( $value, $this->default_totals );
	}

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.