Help Docs Software LearnDash LearnDash MemberDash LearnDash MemberDash Shortcodes [ms-membership-register-user]

[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.

Shortcode Parameters

General Settings

ParameterTypeDescriptionDefaultExample
titleTextTitle displayed above the formCreate an Accounttitle=”Join Now”
first_nameTextPre-filled first name in the formfirst_name=”Jane”
last_nameTextPre-filled last name in the formlast_name=”Doe”
usernameTextPre-filled username in the formusername=”janedoe”
emailTextPre-filled email addressemail=”jane@example.com”
membership_idTextAssigns the user to a membership. Hidden from users. ⚠️ If the membership requires payment, users are redirected to checkout after registering.membership_id=”123″
loginlinkyes / noShows or hides the login link below the formyesloginlink=”no”


Field Labels

Customize the text shown next to each form field.

ParameterTypeDescriptionDefaultExample
label_first_nameTextLabel for the First Name fieldFirst Namelabel_first_name=”Given Name”
label_last_nameTextLabel for the Last Name fieldLast Namelabel_last_name=”Surname”
label_usernameTextLabel for the Username fieldChoose a Usernamelabel_username=”Username”
label_emailTextLabel for the Email fieldEmail Addresslabel_email=”Email Address”
label_passwordTextLabel for the Password fieldPasswordlabel_password=”Create Password”
label_password2TextLabel for the Confirm Password fieldConfirm Passwordlabel_password2=”Repeat Password”
label_registerTextLabel for the submit buttonRegister My Accountlabel_register=”Sign Up”




Field Placeholders (Hints)

These parameters allow placeholder text to appear inside each input field.

ParameterTypeDescriptionExample
hint_first_nameTextPlaceholder for First Name fieldhint_first_name=”Jane”
hint_last_nameTextPlaceholder for Last Name fieldhint_last_name=”Doe”
hint_usernameTextPlaceholder for Username fieldhint_username=”choose-a-username”
hint_emailTextPlaceholder for Email fieldhint_email=”email@example.com”
hint_passwordTextPlaceholder for Password fieldhint_password=”At least 8 characters”
hint_password2TextPlaceholder for Confirm Password fieldhint_password2=”Re-type your password”

Examples

  1. Basic registration form with default fields:
    [ms-membership-register-user]
  1. Custom title and hint for the email field:
    [ms-membership-register-user  title=”Join Our Community” hint_email=”email@example.com”]

Was this article helpful?