[Resolved] Removing nav & subnav item in profile page
-
So now that there’s this new Navigation API, the nav item and the subnav item that i’ve hidden before are now visible again after updating to latest Buddypress 2.6.
As a reference, here’s how I did this before;function my_setup_nav() { global $bp; $bp->bp_nav['vendor-dashboard']['position'] = 7; $bp->bp_nav['my-store']['position'] = 9; $bp->bp_nav['shopping']['position'] = 8; $bp->bp_nav['follow-store']['position'] = 10; // Remove a menu item $bp->bp_nav['events'] = false; $bp->bp_options_nav['shopping']['view_order']= false; } add_action( 'bp_setup_nav', 'my_setup_nav', 1000 );
The repositioning still works, but as said above, removing the subnav doesn’t work anymore. I’m quite a noob in programming to be honest. I’ve looked at the page linked by the changelog but I have no idea how to do it with the ‘new method’. Can anybody help a noob here please? Thanks in advance!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘[Resolved] Removing nav & subnav item in profile page’ is closed to new replies.