bp_forums_parent_forum_id

Return the parent forum ID for the bbPress abstraction layer.

Description

(int) bp_forums_parent_forum_id(); 

Returns (int)

Forum ID.


Usage

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

Defined (1)

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

/bp-forums/bp-forums-functions.php  
  1. function bp_forums_parent_forum_id() { 
  2.  
  3. /** 
  4. * Filters the parent forum ID for the bbPress abstraction layer. 
  5. * @since 1.5.0 
  6. * @param int BP_FORUMS_PARENT_FORUM_ID The Parent forum ID constant. 
  7. */