Skip to:
Content
Pages
Categories
Search
Top
Bottom

Navigation menu renaming


  • eVersatile
    Participant

    @eversatile

    Hello. I have been trying to rename the navigation menu “forum” within groups.
    Currently, I have this code implemented

    function jm_move_group_activity_tab() {
      global $bp;
      if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) {
        $bp->bp_options_nav[$bp->groups->current_group->slug]['forum']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['members']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['admin']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['send-invites']['name'] = 'new name';
      }
    }
    add_action('bp_init', 'jm_move_group_activity_tab');
    

    Everything works except for ‘forum’

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