groupblog_group_id

Groupblog_group_id().

Description

groupblog_group_id( $blog_id ); 

Echos the group id of the group associated with the blog id that is passed in.

Parameters (1)

0. $blog_id
The blog id.

Usage

  1. if ( !function_exists( 'groupblog_group_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/bp-groupblog-templatetags.php'; 
  3.  
  4. // The blog id. 
  5. $blog_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = groupblog_group_id($blog_id); 
  9.  

Defined (1)

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

/bp-groupblog-templatetags.php  
  1. function groupblog_group_id( $blog_id ) { 
  2. echo get_groupblog_group_id( $blog_id );