messages_mark_thread_unread( int $thread_id )

Mark a thread as unread.

Description

Wrapper for BP_Messages_Thread::mark_as_unread().

Parameters

$thread_id

(Required) ID of the thread.

Return

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

Source

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

function messages_mark_thread_unread( $thread_id ) {
	return BP_Messages_Thread::mark_as_unread( $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.