edd_get_purchase_link( array $args = array() )
Get Purchase Link
Description Description
Builds a Purchase link for a specified download based on arguments passed. This function is used all over EDD to generate the Purchase or Add to Cart buttons. If no arguments are passed, the function uses the defaults that have been set by the plugin. The Purchase link is built for simple and variable pricing and filters are available throughout the function to override certain elements of the function.
$download_id = null, $link_text = null, $style = null, $color = null, $class = null
Parameters Parameters
- $args
-
(Optional) Arguments for display
Default value: array()
Return Return
(string) $purchase_form
Source Source
File: includes/template-functions.php
Changelog Changelog
Version | Description |
---|---|
1.0 | Introduced. |