PMPro’s Membership Account page displays several important sections, including membership details, profile info, past invoices, and a customizable list of Member Links.

In this code recipe, we show you how to insert new Member Links to the account page using two action hooks in the plugin. These links can be added for all members or for members of a specific membership level.

Add Links to the "Links" Section on the Membership Account Page Code Recipe Banner Image

You can use these hooks in combination with the pmpro_hasMembershipLevel() function to check a user’s level before displaying links.

Note that in order for the “Member Links” section to display on your account page you must be sure to include the “links” section in the shortcode on the page or add it via the block method.

This is one method you can use to create a more useful “dashboard” for your members. Check out this article with more information to help you create a powerful Membership Account page.

Member Links shown on Membership Account Page

The Code Recipe

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.

After setting up the code, you can modify the list items to add the appropriate links you need for your membership site.

Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo