BP_Messages_Box_Template::next_thread()

Set up the next member and iterate index.

Description

Return

(object) The next member to iterate over.

Source

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

	public function next_thread() {
		$this->current_thread++;
		$this->thread = $this->threads[$this->current_thread];

		return $this->thread;
	}

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.