BBP_Shortcodes::display_forum_index()

Display an index of all visible root level forums in an output buffer and return to ensure that post/page contents are displayed first.

Description

Parameters

$attr

(array) (Required)

$content

(string) (Required)

Return

(string)

Source

File: bp-forums/common/shortcodes.php

	public function display_forum_index() {

		// Unset globals
		$this->unset_globals();

		// Start output buffer
		$this->start( 'bbp_forum_archive' );

		bbp_get_template_part( 'content', 'archive-forum' );

		// Return contents of output buffer
		return $this->end();
	}

Changelog

Changelog
Version Description
bbPress (r3031) 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.