Sync roles Membership plugin and wordpress ?
-
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 🙂
The topic ‘Sync roles Membership plugin and wordpress ?’ is closed to new replies.