View Categories

How to Add Shortcode in WordPress Using User Registration & Membership Plugin?

The User Registration & Membership plugin provides a comprehensive set of shortcodes that allow you to easily integrate user registration, login, and account management functionality into your WordPress site. You can add shortcodes in WordPress through posts, pages, widgets, and theme templates to create a desired form, page, or more.

For example, if you use the shortcode [user_registration_form id="form_id"] on any page, the page will show the registration form, with the form ID you enter, on the front end.

Accessing the Shortcodes List #

To view all available shortcodes within your WordPress admin:

  1. Navigate to User Registration & Membership in your WordPress admin menu.
  2. Next, go to Dashboard > Help.
  3. Click on View all Shortcodes under the Shortcodes option.
Navigate to Shortcodes in User Registration & Membership Plugin

You can now explore all the available shortcodes from the plugin.

Shortcodes List for User Registration & Membership

As you see the list of shortcodes, you can click on the copy icon to use it on any suitable page or post. Similarly, click on the ‘+‘ sign to explore details of the shortcode.

Explore Shortcode in Detail

Copy and paste any shortcodes under the shortcode block of your page or post:

Paste Shortcode in Shortcode Block

Shortcodes Offered by User Registration & Membership Plugin #

1. User Registration Form #

Shortcode: [user_registration_form id="your_form_id"]

Using this shortcode in WordPress, you can display a registration form on the front end, allowing visitors to register on your site.

User Registration Form Shortcode

Parameters:

  • id (REQUIRED): ID of the form to display.

The id parameter is mandatory and cannot be omitted. You must specify which registration form to display using its ID number. Form IDs are in your User Registration forms list and can be accessed through the admin dashboard.

Access Form ID

2. User Login Form #

Shortcode: [user_registration_login]

This shortcode displays a login form on the front-end of your WordPress website, allowing users to authenticate and access restricted content or member areas.

Login Form Shortcode for User Registration

Parameters:

You can add an additional parameter with the shortcode:

  • redirect_url: Specifies the page slug or URL where users will be redirected after successful login.

Examples of using the shortcode along with parameters:

[user_registration_login redirect_url="sample-page"]

This will display the login form and redirect users to the page with the slug “sample-page” after successful login.

[user_registration_login redirect_url="https://wpuserregistration.com"]

This will display the login form and redirect users to the User Registration & Membership website after login completion.

For a detailed guide, read our documentation on how to redirect user after login. 

3. My Account Page #

Shortcode: [user_registration_my_account]

This shortcode creates a dynamic user account page that automatically displays account management options for logged-in users or a login form for visitors who aren’t authenticated

My Account Shortcode Details

Parameters:

You can add the following parameters with My Account Page shortcode:

  • form_id : Specifies which registration form to display alongside the login form for new user signups.
  • redirect_url: Defines the destination page where users are taken after successfully logging in.
  • logout_redirect: Sets the page to redirect users when they log out of their account.

Examples of using the shortcode along with parameters:

[user_registration_my_account form_id="5"]

This creates a combined login and registration page using registration form ID=5, allowing both existing users to sign in and new users to create accounts.

For more detail, read our documentation on how to show login and registration form together. 

[user_registration_my_account redirect_url="dashboard" logout_redirect="homepage"]

This displays the account page and directs users to a dashboard after login, then returns them to the homepage when they log out.

4. Edit Profile form #

Shortcode: [user_registration_edit_profile]

This shortcode displays a profile editing page on the front-end, allowing logged-in users to update their account information and personal details.

Edit Profile Shortcode

Parameters:

This shortcode does not require any parameters and works with default settings. Also, the user must be logged in to access the profile detail page, Here’s what user will see at the frontend:

Using Profile Detail Shortcode

5. Change Password form #

Shortcode: [user_registration_edit_password]

This shortcode displays a secure password change form on the front-end, enabling logged-in users to update their account password with proper validation and security measures.

Edit Password Shortcode

Parameters:

This shortcode does not require any parameters and functions with default security settings.

Examples of using the shortcode:

[user_registration_edit_password]

This will display a password change form with fields for the current password and the new password confirmation, ensuring users can securely update their login credentials.

Edit Password Shortcode Frontend View

6. Profile Details View Pro #

Shortcode: [user_registration_view_profile_details]

This shortcode displays a read-only view of the currently logged-in user’s profile information and registration details on the front-end.

Profile Detail Shortcode

Parameters:

This shortcode does not require any parameters and automatically shows the profile information of the logged-in user.

Examples of using the shortcode:

[user_registration_view_profile_details]

This will display all the profile details and registration information for the currently logged-in user in a formatted, view-only layout.

Example of Using Profile Detail Shortcode

7. Registration Popup Pro #

Shortcode: [user_registration_popup]

This shortcode displays a registration form in a popup modal window, providing a non-intrusive way for users to sign up without leaving the current page.

Popup Shortcode

Parameters:

  • id(Required): Specifies which popup to be displayed.
  • type: Determines how the popup is triggered – either automatically on page load or through a clickable button.

Examples of using the shortcode along with parameters:

[user_registration_popup id="1"]

This displays the registration form in a popup that appears automatically when the page loads. You can find the ID for the popup through User Registration & Membership > Settings > Misc > Popups.

Copy Shortcode for Popup

[user_registration_popup type="button"]

This creates a clickable button that opens the registration popup when users click on it, giving them control over when to view the form.

Popup Form

8. User Restriction Pro #

Shortcode: [urcr_restrict] ... [/urcr_restrict]

This shortcode restricts content visibility based on user roles, allowing you to show or hide specific text, images, or other content to different types of users on your website.

User Restriction Shortcode

Parameters

You can use the following parameter along with this shortcode:

  • access_role Specifies which user role can access the restricted content (e.g., Administrator, Editor, Subscriber).

Examples of using the shortcode along with parameters:

[urcr_restrict access_role="Administrator"] Content to restrict [/urcr_restrict]

This will hide the enclosed content from all users except those with the Administrator role, making it visible only to site administrators.

Content Restriction Shortcode

9. Frontend User Listing Pro #

Prerequisites:
- Frontend Listing addon to create a list.

Shortcode: [user_registration_frontend_listing]

The shortcode displays a member directory or user listing on the front-end of your website, allowing visitors to browse registered users based on your configured display settings.

Frontend Listing Shortcode

Parameters:

  • id (Required): Specifies the Frontend Listing ID that determines which user directory configuration to display.

Examples of using the shortcode along with parameters:

[user_registration_frontend_listing id="1"]

This will display the user directory configured with Frontend Listing ID 1, showing registered members according to the settings defined for that particular listing.

Copy Frontend List ID

You can find the id of the frontend listing through the Frontend List tab.

After using the shortcode, you can view the list:

Frontend Listing at Frontend

You can customize the list settings as per your preference.

10. PDF Download Button Pro #

Prerequisite:
- PDF Form Submission add-on to be installed and activated on your WordPress site.

Shortcode: [user_registration_download_pdf_button]

This shortcode displays a download button that allows logged-in users to generate and download a PDF containing their registration details and form submission data. This is useful for providing users with official records of their registration, certificates, receipts, or documentation that they can save for their records.

Download PDF Shortcode

Parameters:

This shortcode does not require any parameters and automatically generates PDFs based on the user’s registration information.

Examples of using the shortcode:

[user_registration_download_pdf_button]

This will show a download button that becomes visible only after users log in, allowing them to download a personalized PDF with their submitted registration details.

PDF Download Button at the Frontend

11. User Groups #

Shortcode: [user_registration_groups]

This shortcode displays a list of available membership plans or subscription options that are listed under the membership group.

User Registration Group Shortcode

Parameters:

  • id: Specifies which membership group to display by its unique ID number.
  • button_text: Customizes the text that appears on the signup button for the membership plan.

Examples of using the shortcode along with parameters:

[user_registration_groups id="5" button_text="Join Now"]

This will display the membership group with ID 5 and show a “Join Now” button instead of the default signup button text.

Testing Membership Group Shortcode for User Registration and Membership

12. Membership Thank You #

Shortcode: [user_registration_membership_thank_you]

This shortcode displays a customized thank you message to users after they successfully complete registration for a membership plan or paid subscription.

Membership Thank You Shortcode

Parameters:

This shortcode does not require any parameters and displays the default thank you message configured in your membership settings.

Thankyou Page Example
You can also create a thank you page using Thank You block. 

Additional Resources:

Powered by BetterDocs

Scroll to top