Shortcodes


Dashboard Page

This shortcode will display the main affiliate dashboard page.

[couponaffiliates]

If you wish to display the affiliate dashboard for a specific shortcode, you can use the parameter “coupon” like so:

[couponaffiliates coupon='SUMMER20']

Registration Form (PRO)

This shortcode will display the affiliate registration form on a custom page.

[couponaffiliates-register]

Referrer

This shortcode will display the referrer that is linked to the current visitor/customer (in plain text).

[couponaffiliates-referrer]

If you want to add text before it, then use the parameter “text” like so:

[couponaffiliates-referrer text="Referrer code:"]

You can also format this to be used in a URL by using the “type” parameter and setting it to “url” like so:

 [couponaffiliates-referrer text="Referrer code:" type="url"]

My Coupons

This shortcode will show the coupon(s) that are assigned to the current logged in user (in plain text).

[couponaffiliates-my-coupons]

If the user is assigned to multiple coupons, they will be separated by a comma.