edd_add_to_cart( int $download_id, array $options = array() )
Add To Cart
Description Description
Adds a download ID to the shopping cart.
Parameters Parameters
- $download_id
-
(Required) Download IDs to be added to the cart
- $options
-
(Optional) Array of options, such as variable price
Default value: array()
Return Return
(string) Cart key of the new item
Source Source
File: includes/cart/functions.php
Changelog Changelog
Version | Description |
---|---|
1.0 | Introduced. |