Mike,
Thank you for responding. I appreciate the effort!! I am trying to create a button that redirects the user to a specific part of their profile. I do not necessarily want a function but a variable that inserts the user’s name into the link.
which would take the user to their profile page and also to the section to edit group 1
Group 1 is the user’s base information they filled out at registration.
The code works with the user not being logged in. I just have to manually replace the username and then it goes directly to the section I want it to go to.
Possibly because of security reasons, buddypress may have taken the variable text out of use, but like I said it still works if I manually enter the user’s username.