Add link to BuddyPress Settings in BP My Home subnav
-
Hello – I want to put a link to BuddyPress settings page next to the My Widgets and My Settings (which I renamed to Edit Widgets) links in the plugin nav menu. I have gotten feedback that it is confusing to have My Settings in BP My Home and then Settings on the main BuddyPress nav. So I want to make it all accessible from one nav and the BP My Home nav is the better option to save space where the other BuddyPress nav links (profile, activity, friends, groups, sites, blog, forum, etc) live.
I poked around in component.php and function setup_nav() appears to be the place to add the link. I tried adding this but it didn’t work:
$sub_nav[] = array(
‘name’ => ‘Settings’,
‘slug’ => ‘settings’,
‘parent_url’ => $my_home_link,
‘parent_slug’ => ‘settings’,
‘screen_function’ => ‘bp_is_user_settings’,
‘position’ => 30,
‘item_css_id’ => ‘my-home-my-settings’
);How can I add the settings link there?
- The topic ‘Add link to BuddyPress Settings in BP My Home subnav’ is closed to new replies.