bbp_group_forums_root_id

Output the grop forums root parent forum id.

Description

bbp_group_forums_root_id( (int) $default = 0 ); 

Parameters (1)

0. $default — Optional. (int)
Int Optional. Default value

Usage

  1. if ( !function_exists( 'bbp_group_forums_root_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/options.php'; 
  3.  
  4. // int Optional. Default value 
  5. $default = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_group_forums_root_id($default); 
  9.  

Defined (1)

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

/includes/core/options.php  
  1. function bbp_group_forums_root_id( $default = 0 ) { 
  2. echo bbp_get_group_forums_root_id( $default );