Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Edit Profile Link to Edit bbpress Link


  • Matthew
    Participant

    @kidsguide

    Hi

    I would like to change the edit profile link in the admin bar to link to the edit profile link in bbpress.

    I this possible?

    Thanks
    Websiteguy

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

  • Matthew
    Participant

    @kidsguide

    This is what I have so far

    add_action( 'wp_before_admin_bar_render', 'my_tweaked_admin_bar' ); 
    
    function my_tweaked_admin_bar() {
        global $wp_admin_bar;
    
        $wp_admin_bar->remove_menu('edit-profile');
    
        $wp_admin_bar->add_menu( array(
                'id'    => 'edit-profile',
                'title' => 'Edit My Profile',
                'href'  => site_url(''),
                'parent'=>'user-actions'
            ));
    }
    

    Matthew
    Participant

    @kidsguide

    What is the link to put there.

    'href' => site_url(' <strong>LINK HERE</strong> '),


    Shmoo
    Participant

    @macpresss

    I don’t have a straight answer but you could check inside the BuddyPress ‘adminbar’ templates because if oyu have BuddyPress installed the link you mentioned does exact that.

    It links to the front-end edit profile page of the member.

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