- This topic has 5 replies, 2 voices, and was last updated 12 years, 3 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › PHP Code To Display Content Of Affiliate Cookie?
I’m looking for a little snippet of php that can be added to a site to display the affiliate ID that is in the cookie presently.
I generally (when doing this with other platforms) use a little css to make the font color match the site color so that only someone that knows it’s there can find it.
There is a shortcode to display the affiliate ID to your visitors. This post should help:
Is there a php code alternative for display? I need to shove it somewhere obnoxious where a shortcode can’t be used. (I know, that’s not typical for this sort of thing, but thought I’d ask!)
Actually, it would seem that the satellite is unaware of these shortcodes? (Meaning they won’t work on a site that is only running satellite?)
Yeah the satellite plugin doesn’t have that shortcode. I will add it in there. Once I add the shortcode, I will tell you how to use it from PHP too.
Actually I just realized that there is a PHP function in the satellite plugin that you can use to show the referrer’s ID of the visitor. Use the following line of code in your PHP file:
<?php echo wp_affiliate_get_referrer(); ?>