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


Top ↑

Return Return

(string) $purchase_form


Top ↑

Source Source

File: includes/template-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.