Purchase Shortcode

With the dlm_buy shortcode you can display a buy/purchase button on your website. By adding attributes to your shortcode, you can control what product is used on how the button is displayed.


This shortcode takes the following arguments:

idThe product ID which you want to display. You can find this from the products page in admin.
templateThe template used to output the download. Leave blank to use the default add-to-cart.php template.

The template argument in this shortcode uses content templates.


Here are some examples of what shortcodes are used and a screenshot of how this looks.

Default Template

[dlm_buy id="8"]
Download Monitor Buy Shortcode Default

Box Template

[dlm_buy id="8" template="box"]
Download Monitor Buy Shortcode Box Template
Was this article helpful?

Related Articles

Start Protecting your WordPress Downloads

Protect and track downloads on WordPress... What are you waiting for?