@pcwriter
13 years, 8 months ago
Can anyone clue me in on how to specify a member profile subnav item?
I’m trying to write a simple function that will add_action if a user tries to visit a uri like this: http://example.com/members/username/activity/groups/
I’ve searched the codex and haven’t found what I’m looking for (yet…)
Got it! (Props to @sbrajesh at BuddyDev)
$bp->current_component==BP_ACTIVITY_SLUG && $bp->current_action==BP_GROUPS_SLUG