groups_template_my_groups

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

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-screens.php :: Trac Source Line: 37
      	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'      );
      		bp_core_delete_notifications_by_type( $bp->loggedin_user->id, $bp->groups->id, 'member_promoted_to_admin'    );
      	}
      
      	do_action( 'groups_screen_my_groups' );
      
      	bp_core_load_template( apply_filters( 'groups_template_my_groups', 'members/single/home' ) );
      }
      
      function groups_screen_group_invites() {
      	$group_id = (int)bp_action_variable( 1 );
      
      	if ( bp_is_action_variable( 'accept' ) && is_numeric( $group_id ) ) {
      		// Check the nonce
      		if ( !check_admin_referer( 'groups_accept_invite' ) )
      			return false;
      

Comments are closed.