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

Reply To: Question about adding login status to Nav bar on page

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › Question about adding login status to Nav bar on page › Reply To: Question about adding login status to Nav bar on page

January 13, 2010 at 7:50 am #17190
amin007
Participant

You will need to add a bit of PHP code to check if the member is logged in or not and depending on that you can show different links.

Following is an example of PHP code that you can potentially use

if (function_exists('wp_eMember_install'))
{
$emember_auth = Emember_Auth::getInstance();
$user_id = $emember_auth ->getUserInfo('member_id');
if (!empty($user_id))
{
//Member is logged in so display whatever you want
}
else
{
//Member is not logged 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