bp_the_document()

Get the current document object in the loop.

Description

Return

(object) The current document within the loop.

Source

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

function bp_the_document() {
	global $document_template;
	return $document_template->the_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.