Username Variable in custom links?


I’m trying to use custom links in the php code to link to buddypress profile pages.

Basically, I need a way to create a username constant so I can make links like–username–/profile–username–/settings–username–/other

with –username– being the constant which changes the currently logged in user who clicks the link?

I Am sure this could be done in functions.php with a rewrite code but not sure where to begin.

If anyone could help it would be majorly appreciated… This has been racking my brain for weeks. I have no problems implementing the code… Just no idea how to create it?


>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="">

Username Variable in custom links?</a>
, , Crafty Mc 7 months 0 Answers 46 views 0

Leave an answer