bbp_get_forum_visibilities

Return an associative array of forum visibility.

Description

(array) bbp_get_forum_visibilities(); 

Returns (array)


Usage

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

Defined (1)

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

/includes/forums/functions.php  
  1. function bbp_get_forum_visibilities() { 
  2. return apply_filters( 'bbp_get_forum_visibilities', array( 
  3. bbp_get_public_status_id() => _x( 'Public', 'Make forum public', bbpress ),  
  4. bbp_get_private_status_id() => _x( 'Private', 'Make forum private', bbpress ),  
  5. bbp_get_hidden_status_id() => _x( 'Hidden', 'Make forum hidden', bbpress ) 
  6. ) );