- This topic has 1 reply, 2 voices, and was last updated 13 years, 3 months 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 eMember › WP eMember Tweaks › displaying message to a member with certain id
Hi,
i’m trying to find a way to display different messages to members with different id’s
i was searching through forum and found following code (below)
please let me know if this will work for me, and if yes where I should put this code
thank you
code:
<?php
global $auth;
$user_id = $auth->getUserInfo(‘member_id’);
if (!empty($user_id))
{
//pleace code that only members can see
}
?>
This document has more examples and details on this topic:
http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
“where I should put this code” – put it where you want to display whatever it is that you want to display?