Access to $Affiliate_ID in PHP

Posted in


I find that shortcodes are not recognized/interpreted in widget area and some areas handled by other plug-ins. I would like to implement PHP code within a page or so. Please suggest what’s the most convenient way to get Affilaite ID of currently logged-in user?

Thank you,

4 Responses to Access to $Affiliate_ID in PHP

  1. Jerry October 1, 2014 at 8:09 pm #

    I want to amend <a href="”> to reflect the affiliate code if possible

  2. Jerry October 1, 2014 at 8:06 pm #

    How would I amend <a href=""> to include the affiliate id for affiliates but show nothing for non affiliates. I thought it was <a href="?coach="> but I was wrong.

    Is it possible to adjust the entry-title class or must I include the amendment in instance in my template and plugin?

    Thanks in advance!

  3. antonio June 30, 2014 at 8:28 am #

    with the Affiliates API you could create your own function, for example get_affiliate_id().

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