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

Fires before an entire message thread is deleted.

Description

Parameters

$message_ids

(array) IDs of messages being deleted.

$thread_delete

(bool) True entire thread will be deleted.

$thread_id

(int) 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.