bp_groupblog_has_blog_posts

The BP Groupblog bp groupblog has blog posts function.

Description

bp_groupblog_has_blog_posts(); 

Usage

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

Defined (1)

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

/bp-groupblog-templatetags.php  
  1. function bp_groupblog_has_blog_posts() { 
  2. global $bp, $blog_posts_template; 
  3.  
  4. $blog_posts_template = new BP_groupblog_Template( $bp->displayed_user->id ); 
  5.  
  6. return $blog_posts_template->has_blog_posts();