Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • compassioninc
    Participant

    @compassioninc

    I would also like to change the admin bar “Settings > General” link as well. Thank you!


    compassioninc
    Participant

    @compassioninc

    I found what I want overridden. It is the link to “settings/”. But I want to override it from functions.php so it doesn’t get lost in updates. Thank you!

    // Add buddypress links to my dashboard widget
    add_filter('geodir_dashboard_links', 'dt_geodir_dashboard_links');
    function dt_geodir_dashboard_links($dashboard_link) {
    	if ( class_exists( 'BuddyPress' ) ) {
    		$user_link = bp_get_loggedin_user_link();
    		$dashboard_link .= '<li>';
    		$dashboard_link .= '<i class="fa fa-user"></i>';
    		$dashboard_link .= '<a href="'.$user_link.'">';
    		$dashboard_link .= __('About Me', 'gdbuddypress');
    		$dashboard_link .= '</a>';
    		$dashboard_link .= '</li>';
    
    		$dashboard_link .= '<li>';
    		$dashboard_link .= '<i class="fa fa-cog"></i>';
    		$dashboard_link .= '<a href="'.$user_link.'settings/'.'">';
    		$dashboard_link .= __('Account Settings', 'gdbuddypress');
    		$dashboard_link .= '</a>';
    		$dashboard_link .= '</li>';
    	}
    	return $dashboard_link;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar