BP_Document_Template::next_document()

Set up the next document item and iterate index.

Description

Return

(object) The next document item to iterate over.

Source

File: bp-document/classes/class-bp-document-template.php

	public function next_document() {
		$this->current_document ++;
		$this->document = $this->documents[ $this->current_document ];

		return $this->document;
	}

Changelog

Changelog
Version Description
BuddyBoss 1.4.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.