bp_messages_thread_before_exit, $thread_id, $user_id
bp_messages_thread_before_exit, $thread_id, $user_id
Appears in: buddypress.14.5.2
Hook Type: action
Displaying hooks found in version: buddypress.14.5.2do_action('bp_messages_thread_before_exit, $thread_id, $user_id') is found 1 times:
- /bp-messages/classes/class-bp-messages-thread.php line 638
* * @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 ) );