Easy Digital Downloads
  • Package
  • Function
  • Tree

Packages

  • EDD
    • Admin
      • Actions
      • Add-ons
      • Dashboard
      • Discounts
      • Downloads
      • Export
      • Notices
      • Pages
      • Payments
      • Reports
      • Settings
      • System
      • Upgrades
      • Upload
      • Welcome
    • Cart
    • Checkout
    • Classes
      • API
      • Fees
      • HTML
      • Roles
      • Session
    • Emails
    • Functions
      • AJAX
      • Compatibility
      • Errors
      • Formatting
      • Install
      • Login
      • Taxes
      • Templates
    • Gateways
    • Logging
    • Payments
    • Shortcodes
    • Widgets

Functions

  • edd_after_download_content
  • edd_append_purchase_link
  • edd_before_download_content
  • edd_downloads_default_content
  • edd_downloads_default_excerpt
  • edd_filter_success_page_content
  • edd_get_button_colors
  • edd_get_button_styles
  • edd_get_purchase_download_links
  • edd_get_purchase_link
  • edd_get_template_part
  • edd_get_templates_dir
  • edd_get_templates_url
  • edd_locate_template
  • edd_microdata_title
  • edd_microdata_wrapper
  • edd_purchase_variable_pricing
  • edd_show_has_purchased_item_message

Function edd_get_purchase_link

Get Purchase Link

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

Package: EDD\Functions\Templates
Copyright: Copyright (c) 2013, Pippin Williamson
License: GNU Public License
Since: 1.0
Located at includes/template-functions.php

Parameters summary

array $args = array() Arguments for display

Return value summary

string $purchase_form
Easy Digital Downloads API documentation generated by ApiGen 2.8.0