Adding subnav-items: bp_core_add_subnav_item()
I’ve been advancing in my skills in modifying the theme (from nothing). Now I’m at the point where I want to add additional items to the optionsbar. I’m going to add a page in the Events plugin’s optionsbar (but this is not a third party support question). I’m about to do this with the groups’ optionsbar also. So this is a general question.
I’ve located that I need to add this:
bp_core_add_subnav_item( $bp->events->slug, 'all-events', __('All Events', 'bp-events'), $events_link, 'events_screen_all_events', false, bp_is_home() );
What I don’t understand is how I go about pointing to all-events.php which is a file I’ve created in the right directory. I understand that it has something to do with $events_link. But where do I add how the adress to the file?
I’d like to do it in bp-custom.php if possible.
Any help would be greatly appreciated! I’ve read the Codex but it’s a little bit above me
(am using the latest WPMU, BP and Events 0.60 trunk)
- The topic ‘Adding subnav-items: bp_core_add_subnav_item()’ is closed to new replies.