Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove ‘Send Invites’ from Members profile tab – only on group


  • startershut
    Participant

    @startershut

    Hi,

    I am looking to remove the ‘Send Invites’ tab from my Members view and only have it as a sub tab under Groups.

    How do I remove it? I tried the below.

    function startershut_remove_bp_nav() {

    bp_core_remove_nav_item( ‘friends’ );

    bp_core_remove_nav_item(‘send-invites’);}

    But that has not worked.

    Any thoughts.

    Thanks
    Troy

Viewing 1 replies (of 1 total)

  • startershut
    Participant

    @startershut

    I have found the part of the code to remove and have removed the below
    bp_core_new_nav_item( array(
    ‘name’ => __( ‘Send Invites’, ‘invite-anyone’ ),
    ‘slug’ => $bp->invite_anyone->slug,
    ‘position’ => 80,
    ‘screen_function’ => ‘invite_anyone_screen_one’,
    ‘default_subnav_slug’ => ‘invite-new-members’,
    ‘show_for_displayed_user’ => invite_anyone_access_test()
    ) );

    from the following file:
    invite-anyone/by-email/by-email.php

Viewing 1 replies (of 1 total)
  • The topic ‘Remove ‘Send Invites’ from Members profile tab – only on group’ is closed to new replies.
Skip to toolbar