This plugin includes two key features: custom menu locations by membership level and a custom membership menu widget. You can manage menus with as much granularity as you would like. Menus can be set to display for all members, logged-in non-members, by level, and the default (not logged in visitors).
Members and non-members have different needs when it comes to how they navigate and experience your membership site. We have a complete guide on how to create a conditional main menu for your WordPress site using 4 different methods.
For most sites, this Nav Menus Add On is the simplest approach to customize the standard WordPress menu structure.
You must have the Paid Memberships Pro plugin installed and activated with a valid license type to use this Add On.
- Navigate to Memberships > Add Ons in the WordPress admin.
- Locate the Add On and click “Install Now”.
- To install this plugin manually, download the .zip file above, then upload the compressed directory via the Plugins > Add New > Upload Plugin screen in the WordPress admin.
- Activate the plugin through the Plugins screen in the WordPress admin.
Video: How to Set Up Conditional Navigation for Members Only
Customize Menus For Your Theme Locations
This Add On duplicates all
wp_nav_menus defined by your theme. You’ll now see a “members” version as well as a “logged-in, non-member” version.
- Navigate to Appearance > Menus in the WordPress admin.
- Create a new menu or assign an existing menu to your theme’s named menu locations.
- Then, create a new menu or assign an existing menu to the name menu location’s “Members” version.
- Save changes.
Users that are logged in to an account with an active membership level will now see the “Members” menu version, not your default menu.
You can customize menus even further by creating a level-specific navigation menu.
- Navigate to Memberships > Settings > Levels.
- Select a level to edit.
- Locate the “Navigation Menu” section.
- Change settings to create a level-specific menu.
- Save settings.
Now you can navigate back to the Appearance > Menus screen to create a unique menu for each level-specific menu location.
If you do not set a menu for a member-specific location, the menu will fall back to the default as defined by your theme.
The Custom Membership Menu Widget
Navigate to the Appearance > Widgets page in the WordPress Dashboard. Here, you will see a new available widget labeled “PMPro – Custom Membership Menu” that can be placed in any available widget area in your theme.
Widget settings include:
- Title: Set a title to display before the menu items. (optional)
- Members Menu: Select a global menu to display for members of ANY membership level. (optional)
- Logged-in Non-members Menu: Select a global menu to display for logged in users without a membership level. (optional)
Click the link labeled “Click here to set menus for specific levels.” to expand more options. These options will show each active membership level on your site and allow you to assign a unique menu per level.
Menus must be created in the Appearance > Menus page of the WordPress Dashboard prior to selecting them for display in the widget.
Action and Filter Hooks
This Add On has a single filter hook that allows you to set the priority of which menu to display when the user has more than one membership level (in the case that you are using the Multiple Memberships Per User Add On – MMPU).
apply_filters( 'pmpronm_prioritize_levels', array $level_ids );
This is a Standard Add On.
Standard Add Ons are included in all premium membership plans.