1. Documentation
  2. Referrals
  3. [gamipress_referral_url]

[gamipress_referral_url]

Render a referral URL of current page or from the given URL.

Attributes:

  • url – URL to append the referral code. If empty, will render the URL of the current page.
  • current_user – Append referral code of the current logged in user. Accepts: yes, no Default: yes
  • user_id – Append referral code of a specific user.

Example:
[gamipress_referral_url url="http://website.com/"]

Example of use inline:
Your referral URL: [gamipress_referral_url]

Example of use on a link:
<a href="[gamipress_referral_url url="http://website.com/"]">Refferral link</a>

Was this article helpful to you? Yes No

How can we help?