I have a mobile APP that gets the user role via the WP REST API.
I am setting up a multisite with membership2 plugin.
I want when a user registers one of the 4 memberships, he gets a specific user role.
I understood membership 2 can do that, so, I activated the Member Capabilities add on.
In Membership 2 -> Protection Rules -> user roles I set up that eg. somebody who registers for the membership ‘FREE’ the role ‘Hypnotist_free’ should be assigned to this user.
And then tested this: registered a user. In his account page, I can see the Membership Name is ‘FREE’.
When I log in as administrator and go to the list of all users, I see his Role is ‘Subscriber’ instead of ‘Hypnotist_free’.
Is possible to change the User Role depending on the Membership, not only the capability?
Thanks in Advance