bbpress()

The main function responsible for returning the one true bbPress Instance to functions everywhere.

Description

Use this function like you would a global variable, except without needing to declare the global.

Example: <?php $bbp = bbpress(); ?>

Return

(The) one true bbPress Instance

Source

File: bp-forums/classes/class-bbpress.php

function bbpress() {
	return bbpress::instance();
}

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.