bp_blogs_is_blog_hidden

Check whether a given blog is hidden.

Description

bp_blogs_is_blog_hidden( (int) $blog_id ); 

Parameters (1)

0. $blog_id (int)
The blog id.

Usage

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

Defined (1)

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

/bp-blogs/bp-blogs-functions.php  
  1. function bp_blogs_is_blog_hidden( $blog_id ) { 
  2. return BP_Blogs_Blog::is_hidden( $blog_id );