bp_messages_thread_before_mark_delete, $thread_id, $user_id

bp_messages_thread_before_mark_delete, $thread_id, $user_id

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: buddypress.14.5.2

do_action('bp_messages_thread_before_mark_delete, $thread_id, $user_id') is found 1 times:

  • /bp-messages/classes/class-bp-messages-thread.php line 535
    		 *
    		 * @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_mark_delete', $thread_id, $user_id );
    
    		$bp = buddypress();
    
    		// Mark messages as deleted
    		$wpdb->query( $wpdb->prepare( "UPDATE {$bp->messages->table_name_recipients} SET is_deleted = 1 WHERE thread_id = %d AND user_id = %d", $thread_id, $user_id ) );