bbp_dropdown

Output a select box allowing to pick which forum/topic a new topic/reply belongs in.

Description

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

Can be used for any post type, but is mostly used for topics and forums.

Parameters (1)

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

Usage

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

Defined (1)

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

/includes/common/template.php  
  1. function bbp_dropdown( $args = '' ) { 
  2. echo bbp_get_dropdown( $args );