You appear to be a bot. Output may be restricted
Description
Add To Cart
Adds a download ID to the shopping cart.
Usage
$string = edd_add_to_cart( $download_id, $options );
Parameters
- $download_id
- ( int ) required – Download IDs to be added to the cart
- $options
- ( array ) optional – Array of options, such as variable price
Returns
string Cart key of the new item
Source
File name: easy-digital-downloads/includes/cart/functions.php
Lines:
1 to 3 of 3
function edd_add_to_cart( $download_id, $options = array() ) { return EDD()->cart->add( $download_id, $options ); }