Hide menu item based on user’s custom capability
Question
I need to show one item from menu only for users that are logged in and have certain custom capability set.
Is it doable from theme functions.php or does it need a custom plugin?
Note: I already use a plugin to show/hide menu items based on user roles, but couldn’t find anything for Custom Capabilities (user meta value).
Thanks for your time and help!
0
2 months
0 Answers
7 views
0
Leave an answer
You must login or register to add a new answer .