groupblog_blog_id

Groupblog_blog_id().

Description

groupblog_blog_id( (string) $group_id = '' ); 

Echos the blog id of the current group's blog unless $group_id is explicitly passed in.

Parameters (1)

0. $group_id — Optional. (string) => ''
The group id.

Usage

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

Defined (1)

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

/bp-groupblog-templatetags.php  
  1. function groupblog_blog_id( $group_id = '' ) {  
  2. echo get_groupblog_blog_id( $group_id );