Would you like to allow users to register to your WordPress site? With the User Registration addon from WPForms, you can easily create custom registration forms for your site.
In this tutorial, we’ll show you how to install and use the User Registration addon for WPForms.
- Creating a User Registration Form
- Customizing User Registration Settings
- Creating a Custom Login Form
Requirements: You will need a Pro license level or higher to access the User Registration addon.
Creating a User Registration Form
Before we get started, be sure to install and activate the WPForms plugin on your WordPress site.
After the addon is installed and activated, you can create a new form for user registration. To do this, go to WPForms » Add New. This will open a page with a list of available templates.
Within the templates list, select User Registration Form.
This will open the form builder, with the following fields already in place (required fields in the are marked with an * asterisk):
- Short Bio
You can change or remove these fields, or add new fields to fit your needs.
Note: If you’d like to add more information to user profiles such as Birthday, Address, and more, check out our tutorial on setting up custom user meta fields.
Customizing User Registration Settings
Once you feel your form is ready, you can configure the User Registration settings. To do this, go to Settings » User Registration.
On the settings page, you can map each form field to a field in the WordPress user profile. To map a field, just select a form field from each dropdown. If you’re using the default template, these fields will already be filled out for you.
Here are the profile fields available in these settings:
- User Name: Required for a WordPress profile. However, if empty, the user’s email will be used instead.
- Name: Optional, but recommended.
- Password: Required for a WordPress profile. To provide a random, strong password to the user you may select the Auto generate option.
- Website: Optional.
- Biographical Info: Optional.
Below these settings, the User Role dropdown will determine which role new users are assigned when they register through this form. If you’d like more details about roles in WordPress, check out WPBeginner’s guide to WordPress user roles and permissions.
Last, you can choose whether registration emails are sent out and what actions must be taken in order for the registration process to be completed.
Note: Any emails enabled in user registration settings would be sent in addition to the form’s notification emails.
When Send email to the user containing account information is checked, the user will receive a short email containing their username and password, as well as the login URL for your site.
If you’d like to require the user to confirm their email to activate their new account, check Enable user activation. Then, set the User Activation Method dropdown to the User Email option. This will send an email with a link that the user must follow to complete their registration.
If both user email options are enabled, they will be included in the same email.
With the User Activation Confirmation Page dropdown, you can also choose which page of your site the user will see after clicking this activation link.
By checking the box to Send email to the admin, the site’s owner will receive an email including the Username and Email of any users who register.
If you’d like to manually approve new users, you’ll need to check the Enable user activation option. Then, set the User Activation Method dropdown to Manual Approval.
If you enable both of these admin email options, they will be sent within the same email.
If you’re not sure how to locate unapproved users on your site, be sure to check out WPBeginner’s guide on how to find pending unconfirmed users in WordPress.
Note: If you’d like an email notification to be sent to users after their registration has been approved, be sure to check out our developer documentation for more details.
Creating a Custom Login Form
The User Registration addon also allows you to create a custom login form for your site, which can help with branding and ease of access for your users.
To get started, click on WPForms and click on the Add New button. Once on the Setup page, select the User Login Form template.
The template is ready to go as is. If you’d like to customize it even further, you can add any additional fields by clicking and dragging them into your form.
Once the form fields have been set up, you’ll need to configure the form’s settings. To do this, go to Settings and then click on the General tab.
Here, you’ll have the option to:
- Change the form’s name
- Customize the text on the “Submit” button
- Enable anti-spam protections to help prevent spam submissions
Additionally, you can choose to hide the form if a user is already logged in to your site. This option is checked by default and thus, the form will not appear – even when previewing the form – to the site admin or a regular user.
Lastly, you can opt to not store entry data and information, such as IP address and User Agent, in your WordPress database. This option would be recommended for sites that need to comply with GDPR.
For help with this final option, please check out our documentation on creating GDPR compliant forms in WordPress.
When you’re done making your selections, click on the Save button.
Note: For more ideas and details on how to customize your Login Form, please check out our guide.
That’s it! You can now add a custom user registration form and custom login form to your WordPress site.