BuddyDev

Search

[Resolved] [User profile tabs] Link to tab

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2934
    Ravi on #36179

    Hello Hugo,

    Please check the following functions

    
    // If you want to show link for displayed user 
    bp_displayed_user_domain()
    
    

    other

    
    
    // For logged user
    bp_loggedin_user_domain()
    
    //Specfic user
    bp_core_get_user_domain($user_id)
    

    Please let me know if it helps or not.

    Regards
    Ravi

  • Participant
    Level: Master
    Posts: 152
    Hugo Callens on #36184

    OK, I checked https://codex.buddypress.org/developer/bp_component/.
    But how can I create a link to a specific tab in the users’ profile? Do I need a custom function for that?

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #36193

    Hi Hugo,
    Do you want that for the logged users?
    If yes, you can use the following example.

    
    http://example.come/members/me/component/action/....
    
    

    Example, if your members directory is “http://example.com/members/” then you can link to the cpt be

    
    
    http://example.com/members/my_cpt/new-message
    
    

    You can use this syntax to link to any component screen of the logged user.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved