WC_Discounts::set_items( array $items )

Set items directly. Used by WC_Cart_Totals.


Description Description


Parameters Parameters

$items

(Required) Items to set.


Top ↑

Source Source

File: includes/class-wc-discounts.php

	public function set_items( $items ) {
		$this->items     = $items;
		$this->discounts = array();
		uasort( $this->items, array( $this, 'sort_by_price' ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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