bp_is_root_blog

  • apply_filters( 'bp_is_root_blog', (bool) $is_root_blog )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 1121
      	// Use current blog if no ID is passed
      	if ( empty( $blog_id ) )
      		$blog_id = get_current_blog_id();
      
      	// Compare to root blog ID
      	if ( $blog_id == bp_get_root_blog_id() )
      		$is_root_blog = true;
      
      	return apply_filters( 'bp_is_root_blog', (bool) $is_root_blog );
      }
      
      /**
       * Is this bp_get_root_blog_id()?
       *
       * @package BuddyPress
       * @since 1.5
       *
       * @param int $blog_id Optional. Defaults to the current blog id.
       * @return bool $is_root_blog Returns true if this is bp_get_root_blog_id().
      

Comments are closed.