Title: Function to retrieve multiple levels from User
Last modified: March 6, 2022

---

# Function to retrieve multiple levels from User

 *  [cbielich](https://wordpress.org/support/users/cbielich/)
 * (@cbielich)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/function-to-retrieve-multiple-levels-from-user/)
 * I have installed the “[Multiple Memberships Per User Plugin](https://www.paidmembershipspro.com/add-ons/multiple-memberships-per-user/)”
   because I need to be able to assign multiple levels for each user. Prior to installing
   the plugin, I would be able to retrieve the user’s single level with `pmpro_getMembershipLevelForUser`.
 * After installing the plugin `pmpro_getMembershipLevelForUser` only returns the
   first assigned level for the user and ignores the rest.
 * I tried finding documentation for this but I cannot, can anyone point me in the
   right direction on how or what function I can call to get all the assigned levels?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/function-to-retrieve-multiple-levels-from-user/#post-15429743)
 * Actually, you should ask the plugin manufacturer this question, as the mentioned
   function comes from this plugin and not from WordPress: [https://wordpress.org/support/plugin/paid-memberships-pro/](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * But when I looked for it I found the following topic in their support forum: 
   [https://wordpress.org/support/topic/how-to-determine-current-membership-status-with-multiple-membership-records/](https://wordpress.org/support/topic/how-to-determine-current-membership-status-with-multiple-membership-records/)
   
   And there is this source file of the plugin linked: [https://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/functions.php#L1697](https://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/functions.php#L1697)
 * There you can see a function that does what you are looking for:
    `function pmpro_getMembershipLevelsForUser()`
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [4 years, 1 month ago](https://wordpress.org/support/topic/function-to-retrieve-multiple-levels-from-user/#post-15429745)
 * You’re using a commercial/premium plugin, so please use their official support
   channel. We feel they are best equipped to support their products.
 * [https://www.paidmembershipspro.com/support/](https://www.paidmembershipspro.com/support/)
 * **Commercial products are [not supported in these forums](https://make.wordpress.org/support/trouble/section-1-getting-started/what-is-not-supported).**

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Function to retrieve multiple levels from User’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [Paid Membership Pro](https://wordpress.org/support/topic-tag/paid-membership-pro/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/function-to-retrieve-multiple-levels-from-user/#post-15429745)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
