EDD_Cart::set_item_quantity( int $download_id, int $quantity = 1, array $options = array() )
Set the quantity of an item in the cart.
Description Description
Parameters Parameters
- $download_id
-
(Required) Download ID of the item
- $quantity
-
(Optional) Updated quantity of the item
Default value: 1
- $options
-
(Optional)
Default value: array()
Return Return
(array) $contents Updated cart object.
Source Source
File: includes/cart/class-edd-cart.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |