bbpress

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

Description

bbpress(); 

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

Example: $bbp = bbpress" title="bbpress" class="code function">bbpress(); ?>


Usage

  1. if ( !function_exists( 'bbpress' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/bbpress.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbpress(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bbpress.php  
  1. functionbbpress) { 
  2. returnbbpressinstance();