Skip to:
Content
Pages
Categories
Search
Top
Bottom

Accessing user profile page


  • counterfoxx
    Participant

    @counterfoxx

    Hi,

    I have created a custom registration which works and has custom fields. In my header I have added code which checks if the user is logged in. When logged in I want to have a link to ‘My Profile’ for the user. I would like to know where I can find out this information and where it is generated.

    Also I would like to know what files create the user profile page, as I would like to customize it.

    Thanks for your help in advance.

Viewing 1 replies (of 1 total)

  • zaerl
    Participant

    @zaerl

    bbp_get_user_profile_url( $user_id = 0, $user_nicename = '' )
    

    is the function for retrieving the user profile URL. If you don’t pass an ID it takes that current user ID.

    \wp-content\plugins\bbpress\bbp-theme-compat\bbpress\user-details.php
    \wp-content\plugins\bbpress\bbp-theme-compat\bbpress\user-favorites.php
    \wp-content\plugins\bbpress\bbp-theme-compat\bbpress\user-subscriptions.php
    \wp-content\plugins\bbpress\bbp-theme-compat\bbpress\user-topics-created.php
    

    are the template files that you can override in your own template.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar