- 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 › Get rid of Affiliate "logout" link?
I am using the wp_affiliate_view code on a page (Option 2) for my affiliate portal. I also have enabled “create affiliate account” when a new member registers in emember, and “Log into Affiliate Account” when they log in.
So when a logged in user visits the Affiliates page, they see my site’s main menu at the top (with the main site “Logout” link), and then on the page itself they see the Affiliate Portal menu… which includes a separate “Logout” link.
I’m concerned that people will click this second logout link and logout of the affiliates area, but still be logged into the main site. Obviously this is not an egregious thing, but if they click “Affiliates” again, they’ll have to login separately, which is annoying.
I’m wondering if any harm would come from removing it? And if not, how would I do so?
Thanks
To remove the affiliate logout link, open the “affiliate_platform_affiliate_view.php” file and search for the following line:
$output .= '<li><a href="'.$url.$separator.'wp_affiliate_view=logout">'.AFF_NAV_LOGOUT.'</a></li>';
Once you find it just remove that line and it will get rid of the logout link from the affiliate view (option 2).