Hide menu item based on user’s custom capability


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!

toHo 2 months 0 Answers 7 views 0

Leave an answer