Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Edit Profile Link to Edit bbpress Link

  • @kidsguide

    Participant

    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)
  • @kidsguide

    Participant

    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'
            ));
    }
    

    @kidsguide

    Participant

    What is the link to put there.

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

    @macpresss

    Participant

    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