Skip Navigation

[Resolved] Account supplement for members

This support ticket is created 3 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 3 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#2168975

Hello,

Tell us what you are trying to do?
I will try to explain to you what I intend to do. Sorry, if I'm not clear. Tell me, I will rephrase it.
There you have it, on my site, members can log in mainly in two different ways: one as lambda and one as premium.
I would like, from these accounts, that the member can have additional roles according to his status: author, editor, columnist, teacher ...
I will add additional roles in Access but the question is whether I should create user creation or user modification forms. For example, I have a premium member who is also parents and teachers, he will have to add two account supplements. How to do in terms of forms so that they can be in addition to being a premium member?

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
hidden link

#2169177

Hello, Forms does not include built-in support for adding multiple User roles to a single User. In general it is expected that an administrator will assign additional roles through the User profile: https://toolset.com/course-lesson/setting-up-custom-roles-for-members/#using-multiple-roles-per-user

You could use custom programming with our Forms API and generic fields to assign multiple roles programmatically, but it will require some understanding of PHP and general WordPress programming principles. Another ticket here in the forum discusses the concepts involved to assign multiple roles in a Create User form:
https://toolset.com/forums/topic/radio-buttons-selection-triggers-assigning-to-one-of-2-user-roles/

In that scenario, multiple roles would be added upon User registration. You could also do something similar with an Edit User Form, it just depends on when you want to assign additional roles - at the time of registration, or later after submitting the registration Form.

Similar requests with code examples:
https://toolset.com/forums/topic/allow-users-to-add-a-second-custom-role-to-their-own-account/
https://toolset.com/forums/topic/adding-a-secondary-role-to-a-wordpress-user/