groups_template_group_invites

  • apply_filters( 'groups_template_group_invites', 'members/single/home' ) )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-screens.php :: Trac Source Line: 83
      		bp_core_redirect( bp_loggedin_user_domain() . bp_get_groups_slug() . '/' . bp_current_action() );
      	}
      
      	// Remove notifications
      	bp_core_delete_notifications_by_type( bp_loggedin_user_id(), 'groups', 'group_invite' );
      
      	do_action( 'groups_screen_group_invites', $group_id );
      
      	bp_core_load_template( apply_filters( 'groups_template_group_invites', 'members/single/home' ) );
      }
      
      function groups_screen_group_home() {
      	global $bp;
      
      	if ( bp_is_single_item() ) {
      		if ( isset( $_GET['n'] ) ) {
      			bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'membership_request_accepted' );
      			bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'membership_request_rejected' );
      			bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'member_promoted_to_mod'      );
      

Comments are closed.