WordPress Login Form Shortcodes
If you want to use the If you want to use the shortcode builder to create a custom WordPress login form, below are shortcodes to add fields to the form.
Table of Contents
[user-login]
Displays the username/email address 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. |
[reset-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. |
Password Reset Handler Form
Below are the available shortcodes for the handler form that actually save the passwords of users.
[enter-password]
Displays the field for users to enter their new password.
[re-enter-password]
Displays the field for users to re-enter their new password.
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. |
to create a custom WordPress login form, below are shortcodes to add fields to the form.
[login-username]
Displays the username/email field.
[login-password]
Displays the password field.
[login-remember]
Remember login checkbox.
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. |
[login-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. |