Skip to:
Content
Pages
Categories
Search
Top
Bottom

edit group subnav based on groupmeta


  • hiverizecaro
    Participant

    @hiverizecaro

    Hi,
    I would like to change the ‘show_tab’ arguments based on a setting made upon group creation.
    Something like:

    $is_wanted = groups_get_groupmeta( $group_id, ‘show-to’ );

    <?php if ($is_wanted): ?>
    ‘show_tab’=> ‘member’
    <?php else: ?>
    ‘show_tab’=> ‘admin’
    <?php endif; ?>

    How can this parameter be accessed?
    It would also be ok to hide the tab in the group compleatly, like

    $parent_nav_slug = bp_get_current_group_slug();
    $tab = ‘gruppen-stockkarte’;
    bp_core_remove_subnav_item( $parent_nav_slug, $tab, ‘groups’ );

    BUT based on the group_id and groups_get_groupmeta, not for all groups.

    Thanks for your help!

    ( sorry for doubbling the topic, I couldnt figure out how to edit)

  • You must be logged in to reply to this topic.
Skip to toolbar