You are here: Home
Affiliates Management Plugin for WordPress
Thank you. That is what I was looking for.
Ok, can you give me the php for returning the logged in user’s affiliate ID? Then I can create my own shortcode.
Thank you!
Well, I can register my own shortcode, I just need to know how to reference the Affiliate ID. I saw somewhere that you guys were using wpam_id. Is that right. I just need to find out how to return the afffiliates ID.
THank you!
I’ve tried registering a shortcode like this:
// Shortcode for User ID
function nicely_userID_shortcode() {
$nicelyUserID = $_COOKIE[‘wpam_id’];
return $nicelyUserID;
}
// register shortcode
add_shortcode(‘nicelyUserID’, ‘nicely_userID_shortcode’);
But that doesn’t seem to do the trick.