select user role on user registration

Support › MB User Profile › select user role on user registration

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50270
    aryanrajaryanraj
    Participant

    Hi, is it possible to give option to select the user role? subscriber or editor on the registration form? tried with custom field but i don't see any option.

    #50271
    PeterPeter
    Moderator

    Hello Aryan,

    Thanks for reaching out.

    If you want to set a fixed user role when registering a new user, you can use the shortcode attribute role. For example: [mb_user_profile_register role="editor"]

    Following the documentation https://docs.metabox.io/extensions/mb-user-profile/

    If you want to create a select option in the registration form and set the user role based on the selection, you can use some custom code to do so. Refer to this topic https://support.metabox.io/topic/change-user-role/#post-19752

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.