Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Removing Members ability 'Invite Others' to a group


rich! @ etiviti
Participant

@nuprn1

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' );

Skip to toolbar