can i arrange menu in front end based on role user(when login in front end of course)?
if user is an administrator, front end menu is HOME STUFF MODULE
if user is guest, front end menu is HOME STUFF
if user is author, front end menu is HOME MODULE
please help me 🙂
The Members plugin allows you to control what different user roles have the capability to see and do. I’ve used it before to limit what each user can see in the admin menu, if this is what you are talking about.
It’s easier to control what happens by capability, rather than role. You’ll often need to pick a capability unique to each different role, you can always create and assign one. The Members plugin makes this easy, but it can be coded too.
Then you just need to wrap each different menu output in a if (current_user_can('some_capability')) block.
No plugin I know of. I was suggesting hacking the menu output of your theme. Depending on how the menu is implemented in your theme, it may be possible to do from a custom plugin. A child theme is a more likely solution.
While the admin menus have builtin capability control, the front end menus would typically not, thus you would more than likely need custom code.