messages_is_user_sender( int $user_id, int $message_id )
Check whether a user is the sender of a message.
Description
Parameters
- $user_id
-
(Required) ID of the user.
- $message_id
-
(Required) ID of the message.
Return
(int|null) Returns the ID of the message if the user is the sender, otherwise null.
Source
File: bp-messages/bp-messages-functions.php
function messages_is_user_sender( $user_id, $message_id ) { return BP_Messages_Message::is_user_sender( $user_id, $message_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.