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

Constructor method.

Description Description

See also See also

Top ↑

Parameters Parameters


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


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

Default value: 'ASC'


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

Default value: array()

Top ↑

Source Source

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

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

Top ↑

User Contributed Notes User Contributed Notes

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