Your cart is currently empty!
Access to $Affiliate_ID in PHP
—
by
Hi,
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,
Thanakorn
Posted in Affiliates Pro
Comments
4 responses to “Access to $Affiliate_ID in PHP”
I want to amend <a href="”> to reflect the affiliate code if possible
Hi,
you can use [affiliates_url] or [affiliates_id] shortcodes to create your own href version.
cheers
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!
Hi,
with the Affiliates API you could create your own function, for example get_affiliate_id().
cheers