bb_closed_label

The BuddyPress bb closed label function.

Description

bb_closed_label( $label ); 

Parameters (1)

0. $label
The label.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-formatting.php  
  1. function bb_closed_label( $label ) { 
  2. global $topic; 
  3. if ( '0' === $topic->topic_open ) 
  4. return sprintf(__('[closed] %s'), $label); 
  5. return $label;