- This topic has 1 reply, 2 voices, and was last updated 12 years, 1 month 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 › How to code to check if member has multiple membership levels
we are trying to add logic to the emember set up (also running estore).
We wrote code to check if logged on member is a certain level. How can we check for more then one membership level?
Thank you
Hi sarnorealroi, you can do that using “getUserInfo” method of Emember_Auth class in the following way:
// to get a list of additional membership levels (secondary levels)
// return type is an array of string
$secondary_levels = $emember_auth->getUserInfo(‘user_additional_membership_level_names’);