Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add subnav item to selected tab in Groups


  • shanebp
    Moderator

    @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)

  • shanebp
    Moderator

    @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)
  • The topic ‘Add subnav item to selected tab in Groups’ is closed to new replies.
Skip to toolbar