bb_generator

The BuddyPress bb generator function.

Description

bb_generator( (string) $type = 'xhtml' ); 

Parameters (1)

0. $type — Optional. (string) => 'xhtml'
The type.

Usage

  1. if ( !function_exists( 'bb_generator' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The type. 
  5. $type = 'xhtml'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_generator($type); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_generator( $type = 'xhtml' ) 
  2. if ( !$type ) { 
  3. $type = 'xhtml'; 
  4. echo apply_filters( 'bb_generator', bb_get_generator( $type ) . "\n", $type );