Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing Members ability 'Invite Others' to a group


  • AmyCelona
    Participant

    @amycelona

    WordPress 2.9.2

    Buddypress 1.2.3

    Other major plugin : WishList Member

    Is there a way to actually remove that option from the menu? I saw a post on how to disable the feature (but the invitations don’t actually go out), but I’d rather just have the option disappear from the menu.

    Which .php doc would have that menu info, and how to I remove/comment that out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • something like this should work (removes the links from the group creation steps and the group page)

    function my_remove_invites_create_group_steps( ) {
    global $bp;

    //admin eats wheaties and can do anything
    if ( is_site_admin() )
    return;

    //send invites on group creation steps
    unset($bp->groups->group_creation_steps['group-invites']);

    }
    add_action( 'groups_setup_globals', 'my_remove_invites_create_group_steps', 100 );

    function my_remove_invites_groups_setup_nav( ) {
    global $bp;

    //admin eats wheaties and can do anything
    if ( is_site_admin() )
    return;

    bp_core_remove_subnav_item( $bp->groups->slug, 'invites' );

    bp_core_remove_subnav_item( $bp->groups->slug, 'send-invites' );

    }
    add_action( 'groups_setup_nav', 'my_remove_invites_groups_setup_nav' );


    AmyCelona
    Participant

    @amycelona

    Where do I put that code (in which .php document?)

    you can use your theme’s function file or create a wp-content/plugins/bp-custom.php file

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing Members ability 'Invite Others' to a group’ is closed to new replies.
Skip to toolbar