User Registration

Create custom front-end user registration form

Only two steps to create custom front-end user registration form for your WordPress site by user meta :

Steps 1. Create Form :

Go to User Meta >> Forms and click Add New to create a new form. Enter an unique name in Form Name box  (From name is mandatory*) and click Save Changes. A new form has been made. Select fields from the right, those you want to include in your registration form. Edit and modify the fields based on your need. When you have done with editing, click Save Changes. Now your registration form is totally ready to use.

 

img-01: create form

img-01: create form

 

To change Submit Button Title, Submit Button Class or Form Class select Settings section in the Form Name box. You can also disable or enable AJAX submit there.

 

user-meta-registration04

img-02: form settings

 

 

Step 02. Write Shortcode in page or post:

Write user-meta shortcode to page or post for your registration form. To create page, go to Pages >> Add New.

Shortcode for registration form:

[user-meta-registration form="Form_Name"]

 

write shortcode in page or post

img-03: write shortcode in page or post

 

*Change “Form_Name” with your created form name.

Back To Top

Registration shortcode

Write user-meta shortcode to page or post. To create page go to Page >> Add New.

 Registration shortcode: 

[user-meta-registration form="Form_Name"]

 

Use same form for both user profile & registration:

[user-meta type=profile-registration form="Form_Name"]

Use this shortcode to show profile when user logged in. Otherwise, it will show registration form.

Back To Top

User registration widget

User registration form can be shown as WordPress widget. Go to Appearance >> Widgets for available widgets. There will be a new widget named User Meta Form. This widget can be use for showing user registration form as widget. In widget configuration set your Action Type as registration and Form Name as your created registration form name.

 

img-01: user registration widget

img-01: user registration widget

 

Back To Top

Template Tag

Custom user registration can be use as template tag anywhere in your WordPress site by using PHP.


<?php
$actionType = "registration";
$formName = "my_form";
echo userMetaProfileRegister( $actionType, $formName );

Back To Top

Subscribe to our newsletter