8 years, 10 months ago
I have personalised my bbpress forum and want to add a link on the page to allow the user to edit their profile (I have removed the original, “Welcome….” section at the top)
What do I need to link to for the page to redirect the user to their profile?
I think it will be something like this
<?php echo '<a href="'.get_profile_tab_link( bb_get_current_user_info( 'id' ), "edit" ).'">edit your profile</a>' ?>
(untested) the “edit” part is just a guess…
get_user_profile_link(bb_get_current_user_info( 'id' )) will get the profile link for general stuff, not the edit tab.
get_user_profile_link(bb_get_current_user_info( 'id' ))
Cheers that seem to do the trick.
One other question, what do I inset to get to http://mysite.com/forums/profile/USERNAME ??
sorry – ignore the above – you’ve already told me – cheers for your help!
Follow bbPress on Twitter •
Contact Us •
Terms of Service