Set user role on register (4 posts)

  1. paulinhapenedo
    Posted 6 years ago #

    Hello guys! I really need you help!

    I'm developing a website in which I'll have 2 different types of users registering: doctors and employees. I wanna know if it's possible to set the user role right at the register form using something like this:

    I'm a: [radio button] Doctor [radio button]XXXX Employee
    Register Button

    I'm already using "Members" plugin to customize roles and capabilities, so I'm not using the default wordpress roles (author, editor...)
    Help anyone?

  2. tovir
    Posted 5 years ago #

    I am also developing a project that needs this same function.
    Somehow you found a solution?
    Greetings from the "land of cheese", Brazil - rsrs

  3. paulinhapenedo
    Posted 5 years ago #


    Sorry, but no solutions so far.
    There's a plugin called Register Plus Redux that allows you to create custom profile/register fields and use queries to retrieve info from them.

    Perhaps there's a way of creating a query like: if user_meta = doctor, set user_role as Doctor, but I'm too noob for this.

    Hope it helps you!
    Greetins from the "rainy city" rsrs

  4. Curtiss Grymala
    Posted 5 years ago #

    There is this plugin: WP Roles at Registration

    I haven't used it, but it looks like you could use it (possibly in conjunction with something like User Role Editor to change the names of the two desired user roles to "Doctor" and "Employee") to allow users to choose their roles on registration.

Topic Closed

This topic has been closed to new replies.

About this Topic