messages_get_message_sender( int $message_id )

Get the ID of the sender of a message.

Description

Parameters

$message_id

(int) (Required) ID of the message.

Return

(int|null) The ID of the sender if found, otherwise null.

Source

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

function messages_get_message_sender( $message_id ) {
	return BP_Messages_Message::get_message_sender( $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.