WC_Cart::set_cart_contents( array $value )

Sets the contents of the cart.


Description Description


Parameters Parameters

$value

(Required) Cart array.


Top ↑

Source Source

File: includes/class-wc-cart.php

	public function set_cart_contents( $value ) {
		$this->cart_contents = (array) $value;
	}

Top ↑

User Contributed Notes User Contributed Notes

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