Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

PHP Code To Display Content Of Affiliate Cookie?

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate General Questions › PHP Code To Display Content Of Affiliate Cookie?

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 9 months ago by admin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 15, 2012 at 6:04 am #7175
    kimjcastleberry
    Member

    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.

    August 15, 2012 at 6:07 am #48421
    admin
    Keymaster

    There is a shortcode to display the affiliate ID to your visitors. This post should help:

    https://support.tipsandtricks-hq.com/forums/topic/manually-setting-the-affiliate-id-and-showing-the-affiliate-id-of-the-referrer

    August 15, 2012 at 6:34 am #48422
    kimjcastleberry
    Member

    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!)

    August 15, 2012 at 6:47 am #48423
    kimjcastleberry
    Member

    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?)

    August 15, 2012 at 11:16 pm #48424
    admin
    Keymaster

    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.

    August 16, 2012 at 2:22 am #48425
    admin
    Keymaster

    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(); ?>

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ