bp_groups_clear_invite_message_for_user( int $user_id, int $group_id )

Clear user’s invite message.

Description

Message is cleared when an invite is accepted, rejected or deleted.

Parameters

$user_id

(Required) The user ID.

$group_id

(Required) The group ID.

Source

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

function bp_groups_clear_invite_message_for_user( $user_id, $group_id ) {
	delete_user_meta( $user_id, 'bp_group_invite_message_' . $group_id );
}

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.