bbp_get_private_forum_ids

Returns the private forum ids.

Description

bbp_get_private_forum_ids(); 

Only private forum ids are returned. Public and hidden ids are not.


Usage

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

Defined (1)

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

/includes/forums/functions.php  
  1. function bbp_get_private_forum_ids() { 
  2. $forum_ids = get_option( '_bbp_private_forums', array() ); 
  3.  
  4. return apply_filters( 'bbp_get_private_forum_ids', (array) $forum_ids );