How to Allow Different User Roles in Registration Form

A- A+

With WP User Frontend, you can easily assign a user role to newly registered users by configuring the registration form settings. Follow the steps below to set up and manage user roles during registration.

Step 1: Create a Registration Form

  1. Navigate to WP Admin → User Frontend → Registration Forms.
  2. Click Add New Form to create a new registration form.
  3. Customize the form fields according to your requirements.
  4. Save the form once you're done.

If you need help creating a registration form, refer to the registration form guide.

Step 2: Assign a User Role

  1. Open the newly created registration form.
  2. Go to the Settings tab and click on General.
  3. Locate the New User Role option and select the desired role from the dropdown menu.
  4. Click Save Form to apply the changes.

Not sure what each role does? Learn more about WordPress user roles.

Step 3: Embed the Registration Form

  1. Copy the shortcode generated for your registration form.
  2. Navigate to WP Admin → Pages → Add New.
  3. Enter a title for the registration page.
  4. Paste the copied shortcode into the content editor.
  5. Click Publish to make the page live.

Step 4: Register a New User

  1. Visit the newly created registration page on the frontend.
  2. Fill in the form details and submit the registration.
  3. The user will be registered with the selected role.

Step 5: Verify the Registered User’s Role

  1. Go to WP Admin → Users → All Users.
  2. Locate the newly registered user in the list.
  3. Check the User Role column to confirm the assigned role.

Now, your registration form is set up to assign roles automatically, making user management more efficient!