bb_topic_admin

The BuddyPress bb topic admin function.

Description

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

Parameters (1)

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

Usage

  1. if ( !function_exists( 'bb_topic_admin' ) ) { 
  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_topic_admin($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_topic_admin( $args = '' ) { 
  2. $parts = array( 
  3. 'delete' => bb_get_topic_delete_link( $args ),  
  4. 'close' => bb_get_topic_close_link( $args ),  
  5. 'sticky' => bb_get_topic_sticky_link( $args ),  
  6. 'move' => bb_get_topic_move_dropdown( $args ) 
  7. ); 
  8.  
  9. echo join( "\n", apply_filters( 'bb_topic_admin', $parts, $args ) );