Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add an edit profile link on header (core file hacking!)?

  • I wanted to add a simple login/out link in the ‘breadcrumb’ area of every page which I did by using the code on this page: http://bbpress.org/forums/topic/bbpress-20-plugin-adding-a-log-inout-link-to-the-top-of-every-forum-page

    However, I’d also like to add a ‘edit profile’ link as there doesn’t seem to be an easy way for users to do this.

    Could anyone tell me how I would amend this to add a edit profile link?

    $bb2custom_user_is_logged_in = 'Welcome '.$current_user->user_login.'. You can log out <a href='.wp_logout_url( get_permalink() ).'>here</a>.';

    Something like this but I’m unsure of the syntax (plus being a ‘front-end’ chap, I’m crap with PHP):

    $bb2custom_user_is_logged_in = 'Welcome '.$current_user->user_login.'. You can log out <a href='.wp_logout_url( get_permalink() ).'>here</a>. Or edit your profile <a href='.bb_press_edit_profile().'>here</a>';

You must be logged in to reply to this topic.