<code>

Register the bbPress shortcodes.


Usage

  1. // assign value 
  2. $code = 'dynamic_tag'; 
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$code]"); 
  1. // assign value 
  2. $code = 'dynamic_tag'; 
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$code]"); 
  6. echo $result;  

Defined (1)

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

/includes/common/shortcodes.php  
  1. /* @uses add_shortcode() 
  2. * @uses do_action() 
  3. */ 
  4. private function add_shortcodes() { 
  5. foreach ( (array) $this->codes as $code => $function ) { 
  6. add_shortcode( $code, $function ); 
  7.  
  8. /** 
  9. * Unset some globals in the $bbp object that hold query related info