- This topic has 3 replies, 2 voices, and was last updated 14 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 › php fonction for membership
Hi,
I know how check a current user membership level,
$auth->getUserInfo(‘membership_level’)
But i want to do the same thing for an specific user ID :
Could you tell me if a function with $user id parameter exists.
Thanks
Yeah you can get the user ID and all other details easily. This post will explain how to do this:
http://www.tipsandtricks-hq.com/wordpress-membership/wp-emember-miscellaneous-tweaks-248
Hi,
I saw this page, but isn’t really my question. my english is bad
I need to display a membership level, on list of users.
Your solution allowed me to manage the curent user, but i have $id and i want a membership level.
Could you help me ?
I think you want to find the membership level of all members in a loop or something to list it?
You will have to do a lookup in the members database then loop through the resultset. If you open the “eMember_installater.php” file you will be able to see the structure of the members table. If you already know how to use the database in WordPress to select a resultset of all records from that table you will be able to loop through it.