bp_is_blog_page

  • apply_filters( 'bp_is_blog_page', $is_blog_page )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 982
      	$is_blog_page = false;
      
      	// Generally, we can just check to see that there's no current component. The one exception
      	// is single user home tabs, where $bp->current_component is unset. Thus the addition
      	// of the bp_is_user() check.
      	if ( !bp_current_component() && !bp_is_user() )
      		$is_blog_page = true;
      
      	return apply_filters( 'bp_is_blog_page', $is_blog_page );
      }
      
      function bp_is_page( $page ) {
      	if ( !bp_is_user() && bp_is_current_component( $page )  )
      		return true;
      
      	if ( 'home' == $page )
      		return is_front_page();
      
      	return false;
      

Comments are closed.