bb_forum_dropdown

The BuddyPress bb forum dropdown function.

Description

bb_forum_dropdown( (string) $args = '' ); 

Parameters (1)

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

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_forum_dropdown( $args = '' ) { 
  2. $_args = func_get_args(); 
  3. if ( $args && is_string($args) && false === strpos($args, '=') ) 
  4. $args = array( 'callback' => $args ); 
  5. if ( 1 < func_num_args() ) 
  6. $args['callback_args'] = $_args[1]; 
  7. echo bb_get_forum_dropdown( $args );