• Resolved Talagor

    (@talagor)


    Hello, i am trying to set up a community group with special services provided by members.

    Those members need to fill in certain role based and function dependent fields in a form so i am using the Ultimate Member plugin to create the forms and profils of the members.

    Visitors can now browse the profiles or search for a person providing the service they need. To contact them however, they need to register a payed membership. Since ultimate member does not have any paypal integration, i wanted to use membership plugin to handle that.

    Now, here is the problem:

    Service provider can register using the UM form for free and will be assigned a role / community role of “Provider”.

    Visitors need to register using Membership plugin and be assigned a role of “Client”, so they can view the conditional fields, but that is not working. They are assigned the default role of “Provider”.

    I have been told that i need to sync the roles between UM and membership plugin by inserting this code into the registration or action hook of membership:

    “update_user_meta( $user_id, ‘role’, ‘member’); // for example. member is the Member role slug in UM”

    But i am not sure what that means or where i have to do it or even if it would solve the problem.

    How can i sync the roles of wpmu dev membership with ultimate member or wordpress so i can use conditional fields in ultimate member based on user role of a registered user ?

    I hope this makes any sense 🙂

    https://wordpress.org/plugins/membership/

Viewing 3 replies - 1 through 3 (of 3 total)
  • David

    (@ugotsta)

    Hi @talagor,

    I hope you’re doing great today! Thanks for posting your question here, and incidentally, we had another question to that effect recently.

    You’ll see, I’ve posted a bit about user role integration in Membership:
    https://wordpress.org/support/topic/membership-roles-1?replies=2#post-6846722

    Basically, you can select a user role to move members to in the Advanced section when configuring access levels.

    It’s possible to use code to make adjustments if you need, hopefully that user role feature will suffice though!

    Just let us know if you have any questions, we’ll be happy to help. 🙂

    Cheers,
    David

    I am using you plug in to manage users. Currently new users are added when they sign up to an event in Event espresso. But it appears the sync between Ultimate members only works one way and I can t add wordpress users to Ultimate members only the other way around.

    Is there a way I can have my wordpress users automatically sync to Ultimate Members?

    OOps sorry wrong plug in thread

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

The topic ‘Sync roles Membership plugin and wordpress ?’ is closed to new replies.