- This topic has 1 reply, 2 voices, and was last updated 11 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.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › How to use Show specific content to a particular member php tweak
I am just wondering how can I use this php code
Show specific content to a particular member
The following code will show a message to the member if his/her ID is “2”:
$member_id = SwpmMemberUtils::get_logged_in_members_id();
if ($member_id == “2”){
echo “Hi, your member ID is 2”;
}
Where should I paste this php
Hi, that code needs to be added to one or more of your theme templates. Depending on which theme you have installed it will have different templates for pages and maybe even post.