Registration Form Shortcode
If you want to use the shortcode builder to create a custom WordPress registration form, below are shortcodes to add fields to the form.
Table of Contents
[reg-username]
Displays the username field.
[reg-password]
Displays the password field.
[reg-confirm-password]
Displays the password confirmation field.
[reg-email]
Displays the email address field.
[reg-confirm-email]
Displays the email confirmation field.
[reg-website]
Displays the website field.
[reg-nickname]
Displays the nickname field.
[reg-display-name]
Displays the display-name field.
[reg-first-name]
Displays the first-name field.
[reg-last-name]
Displays the last-name field.
[reg-nickname]
Displays the nickname field.
[reg-bio]
Displays the biography field.
[reg-avatar]
Displays the profile picture or avatar upload field.
[reg-cover-image]
Displays the profile cover-image upload field.
Besides the attributes listed below, the shortcodes above also accept any HTML attribute you specify.
Attribute | Description |
---|---|
class | Specify the class name for the field. |
id | Specify the unique id for the field. |
placeholder | Specify a placeholder for the field. |
[reg-cpf]
Displays a custom-field‘s field.
Besides the attributes listed below, the shortcodes above also accept any HTML attribute you specify.
Attribute | Description |
---|---|
key | Field key of the custom field. |
class | Specify the class name for the field. |
id | Specify the unique id for the field. |
[reg-password-meter]
Displays the password strength meter.
Attribute | Description |
---|---|
enforce | Accepts true or false . If true, the form submit button will be disabled unless the password strength is strong. |
[reg-select-role]
Displays the select dropdown field for registering users to select the role that will be assigned to them.
Besides the attributes listed below, the shortcodes above also accept any HTML attribute you specify.
Attribute | Description |
---|---|
options | Comma-separated list of roles that users can only select from. Leave empty to allow all user roles except for administrator. |
class | Specify the class name for the field. |
id | Specify the unique id for the field. |
[reg-submit]
Displays the submit button. Besides the attributes listed below, it also accepts any HTML attribute you specify.
Attribute | Description |
---|---|
class | Specify the class name for the field. |
id | Specify the unique id for the field. |
value | The label for the submit button. |
processing_label | Text displayed on the submit button when form is submitted. |