Tagged: Profile tab
Please I need help putting together my custom Tabs.
Is it possible to display Tabs base on WordPress user role? Like example, I want to display a certain tab for profile owner only. I want the tab to display only for the profile owner, I don’t want other users to see it.Again I want display the tabs base on user role. Like I want to create one tab for WordPress Subscriber user role capability and another tab for Editor user role capability, and no other user can see this tab except the user that has the profile.
Hi,
Welcome to BuddyDev.Thank you for the question.
If you are referring to custom tab created by you, then I don’t see any issue. How are you creating tabs?
Regards
BrajeshI have never created Tabs I just want to learn and create
Hi Joshua,
You can either try looking at BuddyPress source for for bp_core_new_nav_item
Here is their docs toohttps://codex.buddypress.org/developer/function-examples/core/bp_core_new_nav_item/
Regards
BrajeshI have this plugin call BP custom menu, can I use it to achieve it
Hi,
The plugin should allow you to use page as tab. I haven’t checked it recently, so not sure if it allows restricting by roles.
I will suggest giving that a try.Regards
BrajeshIt doesn’t hide tabs based on user role. I have tried it but now options for that. Please help me find a way.
Hi,
You can use our Profile tabs creator pro(paid plugin) to achieve it.
https://buddydev.com/plugins/buddypress-user-profile-tabs-creator-pro/Regards
Brajesh
You must be logged in to reply to this topic.