Hi all!
I’m trying to write a simple function for the admin section of a new theme that will add_action if a user tries to visit any uri related to groups (then adapt it for members, activity, etc.)
Using $bp->current_component == ('groups') works fine for top-level stuff, but I haven't figured out how to target subnavs like this:
http://example.com/members/username/activity/groups/
Can anyone clue me in on how to specify a member profile subnav item?
I’ve been searching the codex but haven’t found what I’m looking for (yet…)
(The next challenge will be to learn how to filter out group activity from the stream if the function is triggered. Oh fun!)