[Plugin: Events Manager] Sub nav creation on Events navigation (Buddypress)
-
Hi all,
I’ve created a new Sub nav item for the Events Manager, but I have had to hardcode the events slug and parent link because the $bp object doesn’t seem to have the events object in when I run the code.
I would much rather be creating the events slug by below line of code, but $bp->events doesn’t exist at the point of running the action.
$events_slug = $bp->events->slug
Could anyone tell me what action I should be tying the sub menu creation in to.
See below for my current version.
[Code moderated as per the Forum Rules. Please use the pastebin]
Thanks in advance
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[Plugin: Events Manager] Sub nav creation on Events navigation (Buddypress)’ is closed to new replies.