Understanding User Roles

This topic contains 3 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2942

    directoryfan
    Free User
    Post count: 157

    Hello Support Team, hello Patrik!

    When a user registers, it will have the role of Subscriber.
    I would like to check the new user first and give him the role of Contributor or Author. First as a Contributor should the user be able to add listings.

    Is there a possibility to set this or is there another way to achieve this?

    Thank you a lot for your support!

    Marius

    #2943

    Patrik
    Moderator
    Post count: 1971

    Hi Marius,

    If you want to assign only single role on registration then you can change default user role WordPress settings from Settings->General->New User Default Role and if you want to assign multiple roles then you will need to do it programmatically via hook or filter. You can use ‘user_register’ hook which fires after registration on your site and assigns multiple roles to user id by using add_role($role) function. You can use any plugins also if you want to assign role manually via GUI.

    Let me know if you need any further information.

    Regards,
    Patrik

    #2944

    directoryfan
    Free User
    Post count: 157

    Hi Patrik,

    thank you for your work and your good support. I’ll try to explain again, what I mean. Under the general WordPress settings I have the default role subscriber, that is OK. The users aren’t allowed to see the backend, they will interact just with the forms of UsersWP. But like that anyone would be able to add listings after registration. The workflow should be:

      new user registers as subscriber, can access just the account form
      user is first checked
      user will be updated to author, can access all the UsersWP forms

    Do you think, that I still have to use the hooks, since someone will have to check them manually?

    It would be nice to have this option in UsersWP, but you are the one who knows, if this is easy to implement and if this makes sense after all. The idea to use just the forms of UsersWP is great and makes the user interaction much easier, but I need a way to stop the spammer and since some specific directories aren’t open to any user, to take first contact with the user.

    Just a spontaneous question, could help me in anyway to do this the Payment Manager ?

    Do you know about a roles plugin working well with GeoDirectory?

    Thank you a lot Patrik for your support
    Marius

    #2945

    Alex Rollin
    Moderator
    Post count: 27815

    To assign additional roles we recommend the “Members” addon.

    You can read more about our beta here using WP Invoicing to assign the roles that is using Members to create and manage the roles.

    https://wpinvoicing.com/looking-for-beta-tester-for-paid-members/

    Members can do quite a lot. In general our idea ia to try to focus on integration of this type with free plugins.

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket