Hooks::groupMemberRemoved( $groupMemberObject )

Sub action when a member is deleted to bp group, based on type

Description

Source

File: bp-integrations/learndash/buddypress/Hooks.php

	public function groupMemberRemoved($groupMemberObject)
	{
		$groupId = $groupMemberObject->group_id;
		$memberId = $groupMemberObject->user_id;

		if ($groupMemberObject->is_admin) {
			return do_action('bp_ld_sync/buddypress_group_admin_removed', $groupId, $memberId, $groupMemberObject);
		}

		if ($groupMemberObject->is_mod) {
			return do_action('bp_ld_sync/buddypress_group_mod_removed', $groupId, $memberId, $groupMemberObject);
		}

		return do_action('bp_ld_sync/buddypress_group_member_removed', $groupId, $memberId, $groupMemberObject);
	}

Changelog

Changelog
Version Description
BuddyBoss 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.