bbp_get_forum_statuses

Return an associative array of available topic statuses.

Description

(array) bbp_get_forum_statuses(); 

Returns (array)


Usage

  1. if ( !function_exists( 'bbp_get_forum_statuses' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/forums/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_get_forum_statuses(); 
  7.  

Defined (1)

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

/includes/forums/functions.php  
  1. function bbp_get_forum_statuses() { 
  2. return apply_filters( 'bbp_get_forum_statuses', array( 
  3. 'open' => _x( 'Open', 'Open the forum', bbpress ),  
  4. 'closed' => _x( 'Closed', 'Close the forum', bbpress ) 
  5. ) );