do_action( 'bp_messages_thread_after_delete', array $message_ids, int $user_id, bool $thread_delete, int $thread_id )

Fires before an entire message thread is deleted.

Description

Parameters

$message_ids

IDs of messages being deleted.

$user_id

ID of the user the threads were deleted for.

$thread_delete

True entire thread will be deleted.

$thread_id

ID of the thread being deleted.

Source

File: bp-messages/classes/class-bp-messages-thread.php

Changelog

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