Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add subnav item to selected tab in Groups

  • Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    BP 1.5.4

    I can add a nav tab on individual group pages using bp_core_new_subnav_item()

    How do I add a tab under a selected tab, like Admin ?

    Using the Group Extension API is a no-go because of conflict with some other plugin – don’t have time to track it down.

Viewing 1 replies (of 1 total)
  • Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    This adds the required tab -

    `
    add_action( ‘groups_admin_tabs’, ‘add_admin_test_tab’, 90, 2);
    function add_admin_test_tab( $current_tab, $gslug ) {
    ?>
    <li class=”current”><a href="/admin/test”>
    <?php
    }
    `

    edit – it works, but it’s a very bad idea not to use the API

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.