messages_mark_thread_read( int $thread_id )

Mark a thread as read.

Description

Wrapper for BP_Messages_Thread::mark_as_read().

Parameters

$thread_id

(int) (Required) ID of the thread.

Return

(false|int) Number of threads marked as read or false on error.

Source

File: bp-messages/bp-messages-functions.php

function messages_mark_thread_read( $thread_id ) {
	return BP_Messages_Thread::mark_as_read( $thread_id );
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.