bp_docs_current_group_is_public

The BuddyPress Docs bp docs current group is public function.

Description

bp_docs_current_group_is_public(); 

Usage

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

Defined (1)

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

/includes/templatetags.php  
  1. function bp_docs_current_group_is_public() { 
  2. global $bp; 
  3.  
  4. if ( !empty( $bp->groups->current_group->status ) && 'public' == $bp->groups->current_group->status ) 
  5. return true; 
  6.  
  7. return false;