bp_messages_thread_before_exit
bp_messages_thread_before_exit
Appears in: buddypress.10.1.0, buddypress.10.2.0, buddypress.10.3.0, buddypress.10.4.0, buddypress.10.5.0, buddypress.10.6.0, buddypress.11.0.0, buddypress.11.1.0, buddypress.11.2.0, buddypress.11.3.1, buddypress.11.3.2, buddypress.11.4.0, buddypress.12.0.0, buddypress.12.1.1, buddypress.12.2.0, buddypress.12.3.0, buddypress.12.4.0, buddypress.12.4.1, buddypress.12.5.0, buddypress.12.5.1, buddypress.14.0.0, buddypress.14.1.0, buddypress.14.2.1, buddypress.14.3.3
Hook Type: action
Displaying hooks found in version: buddypress.14.3.3do_action('bp_messages_thread_before_exit') is found 1 times:
- /bp-messages/classes/class-bp-messages-thread.php line 638634635636637638639640641642643
*
* @param int
$thread_id
ID of the thread being deleted.
* @param int
$user_id
ID of the user that the thread is being deleted
for
.
*/
do_action(
'bp_messages_thread_before_exit'
,
$thread_id
,
$user_id
);
$bp
= buddypress();
// Delete the user from messages recipients
$exited
=
$wpdb
->query(
$wpdb
->prepare(
"DELETE FROM {$bp->messages->table_name_recipients} WHERE thread_id = %d AND user_id = %d"
,
$thread_id
,
$user_id
) );