BP_Messages_Thread::__construct( bool $thread_id = false, string $order = 'ASC', array $args = array() )

Constructor.

Description

See also

Parameters

$thread_id

(bool) (Optional) ID for the message thread.

Default value: false

$order

(string) (Optional) Order to display the messages in.

Default value: 'ASC'

$args

(array) (Optional) Array of arguments for thread querying.

Default value: array()

Source

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

	public function __construct( $thread_id = false, $order = 'ASC', $args = array() ) {
		if ( $thread_id ) {
			$this->populate( $thread_id, $order, $args );
		}
	}

Changelog

Changelog
Version Description
BuddyPress 1.0.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.