bbp_get_topic_types

Return an associative array of topic sticky types.

Description

(array) bbp_get_topic_types(); 

Returns (array)


Usage

  1. if ( !function_exists( 'bbp_get_topic_types' ) ) { 
  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_types(); 
  7.  

Defined (1)

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

/includes/topics/functions.php  
  1. function bbp_get_topic_types() { 
  2. return apply_filters( 'bbp_get_topic_types', array( 
  3. 'unstick' => _x( 'Normal', 'Unstick a topic', bbpress ),  
  4. 'stick' => _x( 'Sticky', 'Make topic sticky', bbpress ),  
  5. 'super' => _x( 'Super Sticky', 'Make topic super sticky', bbpress ) 
  6. ) );