Skip to:
Content
Pages
Categories
Search
Top
Bottom

Link to profile

Viewing 3 replies - 1 through 3 (of 3 total)
  • @djpaul

    Keymaster

    Try bp_loggedinuser_link() for now

    @boah123

    Participant

    Thank you, this works for now… I tried a google search to figure out if it is possible to edit the link text; I want to publish the text ‘edit profile’ and not the actual profile name. Unfortunately, google does not know.

    If you know, please let me know. ;)

    @outolumo

    Participant

    I put this in my functions.php:

    function bp_loggedin_user_profile_link() {
    global $bp;?>
    <a href=”‘. $bp->loggedin_user->domain . ‘” title=”profile”><?php _e( ‘My Profile’, ‘buddypress’ ) ?></a>
    <?php return;
    }

    You can change the link text to whatever you want, I chose to use one buddypress translates by default.

    NOTE: using bp_ prefixed functions may later cause collisions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link to profile’ is closed to new replies.
Skip to toolbar