WordPress.org

Forums

Paid Memberships Pro
PmPro and User Roles (7 posts)

  1. MaddTechWF
    Member
    Posted 1 year ago #

    Is there a way to set a users role based on PmPro membership? I'm trying to use it with WooCommerce and would like to show pricing based on role. I know how to change the price based on role in WooCommerce but I'm not sure how to get PmPro to work for me.

    https://wordpress.org/plugins/paid-memberships-pro/

  2. messica
    Member
    Plugin Author

    Posted 1 year ago #

    Hey there,

    You should be able to do exactly what you want with this addon: http://www.paidmembershipspro.com/add-ons/plugins-on-github/pmpro-roles/

    Hope that helps!

    Thanks,
    Jess

  3. Baronvon
    Member
    Posted 1 year ago #

    Hi there,

    I am trying to get the plugin to work but keep getting the following errors:

    Levels not matching up, or missing? [repair]

    Then:
    No role connections were needed/repaired.

    Also, after installing the plugin all my levels dissapeared.

    How do you actually get to assign user roles to levels.

    Any help would be greatly appreciated

  4. Great H-master
    Member
    Plugin Author

    Posted 1 year ago #

    Hello MaddTechWF,
    The Roles add on will create new user roles based on level names. So for example if you had a membership level titled "Level 1" it will create a new WordPress role called "Level 1" with an id of "pmpro_role_X" where X is the ID of the membership level. It does not assign users into pre-existing WordPress roles.

    Based on these assigned roles you can then create conditionals and change your pricing code as needed. Such as
    if (user role = pmpro_role_1)
    {
    //set custom pricing
    }

    Hope this helps.

  5. Dane Morgan
    Member
    Posted 10 months ago #

    can PMPro assign existing roles like 'Author' when a user subscribes?

  6. messica
    Member
    Plugin Author

    Posted 10 months ago #

    Yes, that is possible with some custom code. You could hook into pmpro_after_change_membership_level and set the user's role depending on their level.

    If you need further help with that, please consider becoming a PMPro member for our member support forums.

  7. Mad Man
    Member
    Posted 8 months ago #

    i am looking for something like that....
    all i want is to show different price to a different user role
    looking for help
    i used a plugin called Dynamic Pricing ..
    But it is not working properly
    please help me
    Thanks in advance

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