[edd_download_pages]

Accepted parameters:

Parameter Values Description
title string Text to show before the download pages list.
id integer Download ID you want to list associated download pages.Leave blank to use the current one (if the shortcode is placed inside the download content).

 

[edd_download_pages_restrict]

This shortcode is intended to restrict content access based on the purchase status of a download. Accepted parameters:

Parameter Values Description
id integer Download ID you want to base the restrictions.Leave blank to use the current one (if the shortcode is placed inside the download content).
restrict_content yes|no Toggle content restriction to customers who have not purchased the associated download.Default: yes.
content_replacement string Content to replace the restricted content to customers who have not purchased the associated download.Accepted values: read-more, excerpt or content.
excerpt string Text to replace the restricted content if content replacement is set to “excerpt”.
content_replacement_length integer Number of letters to show if content replacement is set to “content”.
after_content_replacement_text string Text to show to customers who have not purchased the associated download after the restricted content if restrict content is set to “yes”.
restrict_links yes|no Toggle links restriction to customers who have not purchased the associated download.Default: yes.
links_replacement_text string Text to replace links to customers who have not purchased the associated download if restrict links is set to “yes”.
restrict_images yes|no Toggle images restriction to customers who have not purchased the associated download.Default: yes.
images_replacement_text string Text to replace images to customers who have not purchased the associated download if restrict images is set to “yes”.
granted_users string Comma separated users ids to automatically grant access to the restricted content.

Example:
[edd_download_pages_restrict id="123" restrict_content="yes" content_replacement="excerpt" excerpt="Please! Purchase the donwload!"]
You will need to purchase the download to see this content
[/edd_download_pages_restrict]