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.
Return Return
(int|null) Message ID if the user has access, otherwise null.
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 ); }