bbp_get_topic_statuses

Return an associative array of available topic statuses.

Description

(array) bbp_get_topic_statuses(); 

Returns (array)


Usage

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

Defined (1)

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

/includes/topics/functions.php  
  1. function bbp_get_topic_statuses() { 
  2. return apply_filters( 'bbp_get_topic_statuses', array( 
  3. bbp_get_public_status_id() => _x( 'Open', 'Open the topic', bbpress ),  
  4. bbp_get_closed_status_id() => _x( 'Closed', 'Close the topic', bbpress ),  
  5. bbp_get_spam_status_id() => _x( 'Spam', 'Spam the topic', bbpress ),  
  6. bbp_get_trash_status_id() => _x( 'Trash', 'Trash the topic', bbpress ),  
  7. bbp_get_pending_status_id() => _x( 'Pending', 'Mark topic as pending', bbpress ),  
  8. ) );