[ms-membership-register-user]
The [ms-membership-register-user] shortcode displays a user registration form. This form allows visitors to create a WordPress user account and optionally be added to a membership.
Note: If a registered user is already logged in when they visit the registration page with this shortcode [ms-membership-register-user], they will be automatically redirected to the Membership List page. The Membership List page is defined under MemberDash > General Settings, in the Membership Pages section on the same screen.
Shortcode Parameters
General Settings
| Parameter | Type | Description | Default | Example |
| title | Text | Title displayed above the form | Create an Account | title=”Join Now” |
| first_name | Text | Pre-filled first name in the form | first_name=”Jane” | |
| last_name | Text | Pre-filled last name in the form | last_name=”Doe” | |
| username | Text | Pre-filled username in the form | username=”janedoe” | |
| Text | Pre-filled email address | email=”jane@example.com” | ||
| membership_id | Text | Assigns the user to a membership. Hidden from users. ⚠️ If the membership requires payment, users are redirected to checkout after registering. | membership_id=”123″ | |
| loginlink | yes / no | Shows or hides the login link below the form | yes | loginlink=”no” |
Field Labels
Customize the text shown next to each form field.
| Parameter | Type | Description | Default | Example |
| label_first_name | Text | Label for the First Name field | First Name | label_first_name=”Given Name” |
| label_last_name | Text | Label for the Last Name field | Last Name | label_last_name=”Surname” |
| label_username | Text | Label for the Username field | Choose a Username | label_username=”Username” |
| label_email | Text | Label for the Email field | Email Address | label_email=”Email Address” |
| label_password | Text | Label for the Password field | Password | label_password=”Create Password” |
| label_password2 | Text | Label for the Confirm Password field | Confirm Password | label_password2=”Repeat Password” |
| label_register | Text | Label for the submit button | Register My Account | label_register=”Sign Up” |
Field Placeholders (Hints)
These parameters allow placeholder text to appear inside each input field.
| Parameter | Type | Description | Example |
| hint_first_name | Text | Placeholder for First Name field | hint_first_name=”Jane” |
| hint_last_name | Text | Placeholder for Last Name field | hint_last_name=”Doe” |
| hint_username | Text | Placeholder for Username field | hint_username=”choose-a-username” |
| hint_email | Text | Placeholder for Email field | hint_email=”email@example.com” |
| hint_password | Text | Placeholder for Password field | hint_password=”At least 8 characters” |
| hint_password2 | Text | Placeholder for Confirm Password field | hint_password2=”Re-type your password” |
Examples
- Basic registration form with default fields:
[ms-membership-register-user]
- Custom title and hint for the email field:
[ms-membership-register-user title=”Join Our Community” hint_email=”email@example.com”]