I have some code in a plugin that I'm using, and I need to be able to place the current username within the link.
This is the link I'd like to have at the end:
I can get it as far as adding the /members/section as below, but can't figure out what I need to do to add the current user.
'parent_url' => $bp->displayed_user->siteurl . '/members/my-events' . '/',
I've tried the one below, but that just gives me a white screen. I'm not a developer, just learning from what I see in examples.
'parent_url' => $bp->displayed_user->siteurl . '/members/' $current_user . 'my-events' . '/',
This is on a BuddyPress site, not sure if that helps.