Place current username into a link
-
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:
http://domain.com/members/joe/my-events/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.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Place current username into a link’ is closed to new replies.