bp_messages_thread_before_exit

bp_messages_thread_before_exit

Hook Type: action

See hook in core

Displaying hooks found in version: buddypress.14.3.3

do_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 ) );