Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing Link in Geodirectory Dashboard


  • compassioninc
    Participant

    @compassioninc

    Hello all,

    I have geodirectory, buddy press, and paid membership pro. I was able to change the “account settings” link in the buddy press profile to go to the paid membership pro account settings. However, the geodirectory plugin has a dashboard widget with the buddy press “account settings” link. I would like to change that to the paid membership pro account settings using only the functions.php so it doesn’t get over written when updated.

    Any help would be greatly appreciated!

    Cappy

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

  • 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;
    }

    compassioninc
    Participant

    @compassioninc

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

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