WordPress.org

Support

Support » How-To and Troubleshooting » Set user role on register

Set user role on register

  • 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:

    E-mail:
    Password:
    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am also developing a project that needs this same function.
    Somehow you found a solution?
    Greetings from the “land of cheese”, Brazil – rsrs

    @tovir

    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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set user role on register’ is closed to new replies.