Permanent Affilaite Id on URL of Logged in Users

Hello,

I want to ensure the affiliate referral id of a user is showing on all url of the website as long as a user (who is the affilaite) is logged in. I’ll appreciate your advise.

Thank you

One Response to Permanent Affilaite Id on URL of Logged in Users

  1. Denitsa May 27, 2019 at 2:39 pm #

    Hello there,
    There is a shortcode, [affiliates_id], that renders the current logged in affiliate’s ID. You can use the value it returns to update the URL, for example, using the add_query_arg() function (https://developer.wordpress.org/reference/functions/add_query_arg/).
    Cheers,
    Denitsa

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share