bp_get_current_group_id

The BP Groupblog bp get current group id function.

Description

bp_get_current_group_id(); 

Usage

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

Defined (1)

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

/1.5-abstraction.php  
  1. function bp_get_current_group_id() { 
  2. global $bp; 
  3.  
  4. return apply_filters( 'bp_get_current_group_id', isset( $bp->groups->current_group->id ) ? $bp->groups->current_group->id : 0 );