WordPress menu manager
WP User Manager extends the way your WordPress menu manager works. We have added a set of WPUM powered links directly into the menu manager interface. These are dynamic links that hide and display based on different conditions.
Logged-in links are not visible to visitors who are not logged in. When you add either the "edit account" or "log out" links to your menu, those links will only display when a users is logged in. Once logged out, the links will automatically hide.
Logged-out links are not visible to users who are logged in. When you add either the "register" or "log in" links to your menu, those links will only display when a user is logged out. Once logged in, the links will automatically hide.
Note: the links are dynamically generated by detecting a css class that WPUM automatically adds when adding the link to a menu. This is why the url and css classes options are hidden and not editable when using the menu manager into "Appearance -> Menus".
Note: when editing a menu through the WordPress customizer, the css classes and url fields will display. It is important that you do not edit the css class otherwise the menu link will fail to properly hide/show and generate the proper url.
Setting menu items visibility
Introduced in version 1.4.0 of WP User Manager, you can now set a visibility option for each menu item in your menu. The following are the available visibility options:
- Show menu item to everyone.
- Show menu item to logged in users only ( with possibility to select user roles too ).
- Show menu item to logged out users only.
When editing a menu item you will now see a new "Display to" setting, select the option that you prefer and then save your menu.