How to get all Group nav items?
-
I need to know the group nav items.
with “$bp->bp_options_nav[groups]” I will get the nav items, from my groups:
foreach ( $bp->bp_options_nav[groups] as $nav_item ) {
echo $nav_item['name'].", ";
}Will give me back:
* My Groups
* Create a Group
* Invites
But I need the nav items from the displayed group. Not my groups.
For buddypress.org it would be:
* Home
* Wire
* Members
* Send Invites
* Leave Group
For the user profile I found it:
foreach ( $bp->bp_nav as $user_nav_item ) {
if ( !$user_nav_item['show_for_displayed_user'] )
continue;
echo $user_nav_item['name'].", ";
}With the “show_for_displayed_user” I will get a filtered list with all nav items from a displayed user. Not the logged in user.
Is there a way to get the group nav items?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get all Group nav items?’ is closed to new replies.