- This topic has 1 reply, 2 voices, and was last updated 13 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 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 Tweaks › WP Affiliate Platform – Global Logged in Variable?
Hi,
Am needing to know if there is a global logged in variable that I can use in other sections of the site.
For example:
if(affiliate = logged_in) {
do something
} else {
do something else
}
Thanks.
You can use the following function to find out of an affiliate is logged in or not:
aff_main_check_security()
The above function will return true if the affiliate is logged in or false otherwise.
Example usage code:
<?php
if(aff_main_check_security())
{
echo "Affiliate is logged in";
}
else
{
echo "Affiliate is not logged in";
}
?>