This tutorial is also available in video form: Create A Registration Form with Admin Approval Using Frontend Admin – Video Tutorial
In this article, we’ll guide you through adding a user registration form to your website using the Frontend Admin plugin for WordPress. Additionally, you’ll learn how to set up admin approval, ensuring that new users can only be added once the admin approves their submission. Let’s dive right in!
Adding a New Registration Form
- Access Frontend Admin:
- Log in to your WordPress dashboard.
- Scroll down to Frontend Admin on the left-hand menu.
- Click on Forms.
- Create a New Form:
- Click Add New Form to create a new form.
- You can name the form whatever you prefer. In this example, we’ll name it New User Form.
- Under the Select Type dropdown, choose New User Form.
- Click Publish.
- Username
- Password
- First Name
- Last Name
- Role
- Submit Button
- In your form editor, locate the User Password field.
- Click Duplicate.
- Change the label of the duplicated field to Confirm Password.
- Under the Type dropdown, select Password Confirm.
Limiting User Roles
By default, users can select any available WordPress role during registration. However, you may want to limit this to specific roles, such as Subscriber or Customer.
- Scroll down to the Role field in your form.
- Specify which roles users can choose by restricting it to your preferred options, such as Subscriber or Customer.
- Save the changes.
You now have a fully functional registration form with restricted user roles.
Enabling Admin Approval
If you want to manually approve each user before they can access your site, you can enable admin approval.
- Go back into the Form Settings.
- Scroll down to Submissions.
- Under Submission Requirements, check the box for Admin Approval.
- Save your changes.
Testing the Form
To make sure the form works, let’s sign up a new user as an example:
- Fill out the form with sample data:
- Username: John Doe
- Email: johndoe@example.com
- Password: A strong password (with confirmation)
- First Name: John
- Last Name: Doe
- Click Submit.
The form will be successfully submitted, but John Doe will not appear in the Users section yet because admin approval is required.
Approving a User Submission
Now let’s approve the user’s account from the admin dashboard:
- Hover over Frontend Admin in your WordPress dashboard and click Submissions.
- You’ll see the submission from John Doe marked as Pending Approval.
- Open the submission to review the data.
- Click Approve.
Once approved, John Doe will appear as an active user in the Users list. John can now log in to the website with his credentials.
Conclusion
That’s all it takes to add a fully functional registration form to your WordPress site using the Frontend Admin plugin! You’ve also learned how to add admin approval to ensure that only verified users can access your site. We hope this guide was helpful.
Enjoy form building with Frontend Admin by DynamiApps!