BP_Messages_Thread_Template::__construct( int $thread_id, string $order = 'DESC', array $args = array() )

Constructor method.

Description

See also

Parameters

$thread_id

(int) (Required) ID of the message thread to display.

$order

(string) (Optional) Order to show the thread's messages in.

Default value: 'DESC'

$args

(array) (Optional) Array of arguments for the query.

Default value: array()

Source

File: bp-messages/classes/class-bp-messages-thread-template.php

	public function __construct( $thread_id = 0, $order = 'DESC', $args = array() ) {
		$this->thread        = new BP_Messages_Thread( $thread_id, $order, $args );
		$this->message_count = count( $this->thread->messages );
	}

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.