BP_REST_Messages_Endpoint::get_message_object( int $message_id )

Get the message object thanks to its ID.

Description

Parameters

$message_id

(Required) Message ID.

Return

(BP_Messages_Message)

Source

File: bp-messages/classes/class-bp-rest-messages-endpoint.php

	public function get_message_object( $message_id ) {
		return new BP_Messages_Message( $message_id );
	}

Changelog

Changelog
Version Description
0.1.0 Introduced.

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.