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()


Top ↑

Return Return

(string) Cart key of the new item


Top ↑

Source Source

File: includes/cart/functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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