bp_group_member_ban_link( int $user_id )

Output a URL for banning a member from a group.

Description

Parameters

$user_id

(Required) ID of the member to ban. Default: current member in a member loop.

Source

File: bp-groups/bp-groups-template.php

function bp_group_member_ban_link( $user_id = 0 ) {
	global $members_template;

	if ( !$user_id ) {
		$user_id = $members_template->member->user_id;
	}

	echo bp_get_group_member_ban_link( $user_id );
}

Changelog

Changelog
Version Description
BuddyPress 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.