bb_new_topic_forum_dropdown

The BuddyPress bb new topic forum dropdown function.

Description

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

Parameters (1)

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

Usage

  1. if ( !function_exists( 'bb_new_topic_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_new_topic_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_new_topic_forum_dropdown( $args = '' ) { 
  2. if ( !is_array( $args ) ) { 
  3. $args = array( 
  4. 'callback' => 'bb_current_user_can',  
  5. 'callback_args' => array( 'write_topic' ) 
  6. ); 
  7. if ( !isset( $args['callback'] ) && !isset( $args['callback_args'] ) ) { 
  8. $args['callback'] = 'bb_current_user_can'; 
  9. $args['callback_args'] = array( 'write_topic' ); 
  10. bb_forum_dropdown( $args );