bp_messages_remove_data( int $user_id )

When a user is deleted, we need to clean up the database and remove all the message data from each table.

Description

Parameters

$user_id

(Required) The ID of the deleted user.

Source

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

function bp_messages_remove_data( $user_id ) {
	// Delete all the messages and there meta
	BP_Messages_Message::delete_user_message( $user_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.