This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BBP_Shortcodes::start( string $query_name = '' )

Start an output buffer.

Description

This is used to put the contents of the shortcode into a variable rather than outputting the HTML at run-time. This allows shortcodes to appear in the correct location in the_content() instead of when it’s created.

Parameters

$query_name

(Optional)

Default value: ''

Source

File: bp-forums/common/shortcodes.php

	private function start( $query_name = '' ) {

		// Set query name
		bbp_set_query_name( $query_name );

		// Start output buffer
		ob_start();
	}

Changelog

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