BP_Messages_Message::__construct( int|null $id = null )

Constructor.


Parameters Parameters

$id

(int|null) (Optional) ID of the message.

Default value: null


Source Source

File: bp-messages/classes/class-bp-messages-message.php

	public function __construct( $id = null ) {
		$this->date_sent = bp_core_current_time();
		$this->sender_id = bp_loggedin_user_id();

		if ( ! empty( $id ) ) {
			$this->populate( $id );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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