View Categories

How to Set Up My Account Page in WordPress for User Registration?

The My Account page is a crucial component for any user registration site. It provides users a centralized dashboard to manage their profiles, update account information, change passwords, and access account-related features. This comprehensive guide will walk you through the various methods to set up the WordPress My Account page.

Prerequisites:
✅ Active installation of User Registration & Membership plugin.

Method 1: Automatic Installation Recommended #

When you first install User Registration & Membership, the plugin offers to automatically create essential pages for you, including the My Account page.

So, you can choose to install the page and set it up later. The pages you installed on your website, including the My Account page, will appear under All Pages. Look for the My Account page and confirm.

Navigate to All Pages and My Account Page

The page should contain the [user_registration_my_account] shortcode.

My Account Page with Shortcode

Method 2: Using the My Account Block #

If you prefer creating a custom page or need more control over the setup process, you can create a new My Account page.

For sites using the WordPress Block Editor (Gutenberg), you can use the dedicated My Account block offered by the User Registration & Membership plugin to create a new My Account page. Here are the steps to follow:

  1. Navigate to Pages > Add Page (or edit an existing page).
Navigate to Pages and Add Page

2. Give your page a title and click the “+” button to add a new block.
3. Search for “My Account” or find it under the User Registration blocks category.
4. Add the “My Account” block to your page.

Drag and Drop Myaccount Block

5. Configure block settings: Click on the block, and you’ll see the settings on the right side of the editor.

My Account Block Settings

From here, you can set the:

  • Redirect URL: Enter the URL of the page where you want to send users after successfully logging in (leave empty to stay on the current page).
  • Logout URL: Enter the page URL to redirect the user after they click on the My Account page’s Log out or Sign Out button (leave empty to stay on the current page).
  • User State: Choose between Logged Out and Logged In. It shows you the My Account page preview based on the users’ status, i.e., whether they are logged in or logged out.

Publish or save the page after you complete the configuration.

Method 3: Manual Setup Using Shortcode #

Alternatively, if you want to create your own account page, you can also create a new page using a shortcode. Here’s how:

  1. Navigate to the Pages > Add Page (or edit an existing page).
  2. Click on the block inserter ‘+‘ and search for the Shortcode block. As you see the block, insert and paste the below given shortcode:
    shortcode[user_registration_my_account] 
Insert Shortcode for My Account

Publish or Save the page based on whether it’s a new page or you’re editing an existing page.

How to assign the My Account page?

Once you have manually created a My Account page, you will have to assign it as your account page from the User Registration & Membership settings. To do this, please follow the steps below:

  • Go to User Registration & Membership > Settings > General > General Options.
  • Scroll down to ‘My Account Section‘.
  • Assign the manually created new My Account page to the My Account page using the dropdown field.

Click on the Save Changes button at the bottom of the page.

Test the Configuration for My Account Page #

Let’s test whether or not the user will be taken to the newly assigned My Account page. To view the Account profile, the user needs to be logged in. Once logged in, users can view their user profile through their account page.

So, start by visiting the site in private/incognito mode. Now, register with a test ID and try to log in with the same ID. It should take you to the newly created My Account page.

The user profile details are displayed on the page under the Profile Details tab as shown in the GIF below:

Test New My Account Page

Meanwhile, users will not be taken to the My Account page if you’ve set a different redirection after login.

Additional Resources #

Powered by BetterDocs

Scroll to top