Paid Memberships Pro
Why does not PMP create user groups? (7 posts)

  1. Caps
    Posted 4 years ago #

    I noticed that some other membership plugins are able to add new user groups within the WP users dashboard. However, PMP does not. Please tell me why not?

    I want to create some tables which has performance scores for each team member. There are team member ranks (not subscriptions names). Example: Captain / Sergent / Private.

    I guess I can create subscription levels than manually move then in. However, PMP does not create user groups and they therefore will not be a variable I can declare in my final output. Example: username /rank.


  2. Jason Coleman
    Plugin Author

    Posted 4 years ago #


    I'm not sure exactly what you mean by "user group". Could just be a terminology thing to me.

    PMPro has membership levels. Currently one level per user. As you say, you can create a membership level and make it free or add people manually.

    If you want to output someone's membership level in code, you can do:

    $user = get_userdata($user_id);
    echo $user->membership_level->name;

    If you just want to add a user meta field there are various tutorials for doing that through code.

    https://gist.github.com/1389944 (PMPro code sample)
    http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields (Tutorial by Justin Tadlock)

    If there is a plugin that does just this really well, let me know. It probably works well with PMPro.

  3. Caps
    Posted 4 years ago #

    User groups that are default in WP: subscriber, editor, author.

  4. Jason Coleman
    Plugin Author

    Posted 4 years ago #

    Ah, okay. Those are called "Roles" in WP lingo.

    So there are two plugins (at least) that do this very well and I didn't want to recreate functionality they handle so well:

    What may be needed then is a way to assign a different role for a user based on their membership level. Here is a post on our blog RE how to do that:
    http://www.paidmembershipspro.com/2011/10/give-new-members-author-role/ (premium content)

    The gist is to hook into pmpro_after_change_membership_level and change the user's role with the $wp_user_object->set_role() method.

  5. Caps
    Posted 4 years ago #

    Thank you for that, yes roles. Remember the titles for specific groups, so I make these roles. They need to be shown in the avatar area.

    Example: Captain / Sergent / Private.

    Will install that plugin now.

    I do not see the PMP membership levels as a role which was my point.

  6. Caps
    Posted 4 years ago #

    Another great plugin you pointed out. User Role Editor is great.

    Thank you again,


  7. Caps
    Posted 4 years ago #

    I do not see the PMP membership levels as a role which was my point. I do see however another membership plugin roles which can be managed by the Role Editor. This function is key to what I am developing.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic