Skip to:
Content
Pages
Categories
Search
Top
Bottom

New Navigation API


  • sharmavishal
    Participant

    @sharmavishal

    Reference: If you are directly accessing buddypress()->bp_nav or buddypress()->bp_options_nav, be aware that this type of access will be deprecated in 2.6.0

    i am ordering the tabs using the following 2 codes in bp-custom.php

    function bbg_change_profile_tab_order() {
    global $bp;
        $bp->bp_nav['activity']['position'] = 10;
    }
    add_action('bp_setup_nav', 'bbg_change_profile_tab_order');
    function my_bp_groups_forum_first_tab() {
    global $bp;
    $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['position'] = 1;
    }
    
    add_action('wp', 'my_bp_groups_forum_first_tab');

    what would change in the code to make it work for bp 2.6

    kindly advise.

    Thanks

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