Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › Question and comment about eMember › Reply To: Question and comment about eMember
February 13, 2010 at 5:02 am
#17722
Participant
Here is an example code that gets the user id of the logged in user:
if (function_exists('wp_eMember_install'))
{
global $auth;
$user_id = $auth->getUserInfo('member_id');
if (!empty($user_id))
{
// User is logged in so display some stuff here
}
}