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
Hook Type: action
Displaying hooks found in version: buddypress.14.2.1do_action('bp_messages_thread_before_exit') 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 ) );