Generate Menu Item from CURRENT logged in user…
-
What I am trying to accomplish is sort of odd, and seems to fall in the space between currently available plugins. I would simply like to:
1) Have a user/client log in.
2) Have a menu item (and page) appear that is specific to that user.After exhaustive searching I have found a plugin called User Role Editor, but it would require manual entry of every user ID, as well as assigning the permission page to that ID.
Let me back track and give the intended purpose and maybe somebody could offer a more elegant solution. We are creating a site for clients that will contain some visual work (and files) that we have created for them. So we don’t want them to be able to edit the page, just go there to view and/or show this work, so I believe that eliminates most BuddyPress type things. It can’t be as vague as the normal Nav Menu Roles ‘logged in’ or ‘logged out’ because the page would be visible to everybody once logged in and couldn’t be specific to that client.
I understand that we will still be creating a page (or multiple/child pages) for each client, but was thinking I could easily name their page to match their ID? Then when they log in we could display the page or menu item that matches the ‘current user ID’? Maybe I’m looking for the function that generates the menu itself and need to modify that? I know that I’m most likely making this way more complicate than necessary, so any help would be greatly appreciated. Thanks in advance.
- The topic ‘Generate Menu Item from CURRENT logged in user…’ is closed to new replies.