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


Comments

One response to “Permanent Affilaite Id on URL of Logged in Users”

  1. Denitsa Avatar
    Denitsa

    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

Share