messages_check_thread_access( int $thread_id, int $user_id )

Check whether a user has access to a thread.


Description Description


Parameters Parameters

$thread_id

(Required) ID of the thread.

$user_id

(Optional) ID of the user. Default: ID of the logged-in user.


Top ↑

Return Return

(int|null) Message ID if the user has access, otherwise null.


Top ↑

Source Source

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

function messages_check_thread_access( $thread_id, $user_id = 0 ) {
	return BP_Messages_Thread::check_access( $thread_id, $user_id );
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.