EDD_Payment::add_download( int $download_id, array $args = array(), array $options = array() )
Add a download to a given payment
Description Description
Parameters Parameters
- $download_id
-
(Required) The download to add
- $args
-
(Optional) Other arguments to pass to the function
Default value: array()
- $options
-
(Optional) List of download options
Default value: array()
Return Return
(bool) True when successful, false otherwise
Source Source
File: includes/payments/class-edd-payment.php
Changelog Changelog
Version | Description |
---|---|
2.5 | Introduced. |