Sorry, that should be: bbp_get_user_profile_url()
Okay, sorted!
I took a dive into bbPress source code, and ‘bb_get_user_profile_url()’ is the correct function to use to get to a user’s profile. Here’s the source link
And an example usage:
<?php $this_user = wp_get_current_user(); ?>
<a href="<?php echo bbp_get_user_profile_url($this_user->ID); ?>edit/">Edit Forum profile</a>
Thanks for giving it a shot. Sorry, the code wasn’t a straight copy and paste and I slightly borked it in the post.
It’s basically:
<?php $this_user = wp_get_current_user(); ?>
<a href="/forums/users/<?php echo $this_user->user_login; ?>/edit/">Edit Forum profile</a>
You’ll find that this should generate the same URL as you’ve done.
Thanks @ronthai, but that’s kind of the same thing I’m doing. If you check the source, you’ll see wp_get_current_user()
basically abstracts the same thing. Did check out your linked post though, neat idea.
Any idea on the edit profile capabilities? It’s really kicking my arse.