Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Doubt on profile code


  • renatokeuller
    Participant

    @renatokeuller

    I have a website that directs the header.php link “My Profile” for the part to edit the get_edit_user_link user profile.

    I wish instead to redirect to the page to edit the profile, point to the page to view the profile. What code should I use to replace get_edit_user_link?

Viewing 5 replies - 1 through 5 (of 5 total)

  • renatokeuller
    Participant

    @renatokeuller

    PLEASE HELPE-ME

    My code: echo get_edit_user_link($current_user->ID); ?>”><span class=”fa fa-dashboard”></span><?php _e(‘My Profile’, ‘iamd_text_domain’); ?><?php

    So I click “My perfll” it directs to edit the profile, for example: /members/administrador/profile/edit/

    I want it to redirect to: members/administrador/profile/


    shanebp
    Moderator

    @shanebp

    $profile_link = bp_core_get_user_domain($current_user->ID) . 'profile';
    echo $profile_link; 

    renatokeuller
    Participant

    @renatokeuller

    Thank you for the response and attention @shanebp.

    But I am not a professional in php and I wonder how would the ready code as copied and pasted but gave error.


    shanebp
    Moderator

    @shanebp

    In the code you’ve shown here, replace
    echo get_edit_user_link($current_user->ID);
    with
    echo bp_core_get_user_domain($current_user->ID) . 'profile';


    renatokeuller
    Participant

    @renatokeuller

    Thank you friend @shanebp. Topic closed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Doubt on profile code’ is closed to new replies.
Skip to toolbar