Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide Invitations in


  • jvberger
    Participant

    @jvberger

    Hi all!

    I would need help with hiding a menu item, that is not working properly.

    I found the following code for hiding a menu item in the subnav, but I am not sure how to change it to use it for the other menu. It is an object-nav.item, and it is the invitation link.
    <li id="invitations-personal-li">

    Can someone help me?

    function profile_visibility_subnav() {
    	global $bp;
          bp_core_remove_subnav_item( 'settings', 'profile' );
    }
    add_action( 'bp_setup_nav', 'profile_visibility_subnav',999 );

    Thanks in advance,
    Jessica

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    Have you tried turning off invitations?
    wp-admin > Settings > BuddyPress then click Options
    and deselect ‘Invitations’ Allow registered members to invite people to join this network

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar