bp_blogs_get_random_blogs

Retrieve a random list of blogs.

Description

(array) bp_blogs_get_random_blogs( (constant) $limit = null, (null) $page = null ); 

Returns (array)

See {@BP_Blogs_Blog::get()}.

Parameters (2)

0. $limit — Optional. (constant) => null
The limit.
1. $page — Optional. (null) => null
The page.

Usage

  1. if ( !function_exists( 'bp_blogs_get_random_blogs' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-functions.php'; 
  3.  
  4. // The limit. 
  5. $limit = null; 
  6.  
  7. // The page. 
  8. $page = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bp_blogs_get_random_blogs($limit, $page); 
  12.  

Defined (1)

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

/bp-blogs/bp-blogs-functions.php  
  1. function bp_blogs_get_random_blogs( $limit = null, $page = null ) { 
  2. return BP_Blogs_Blog::get( 'random', $limit, $page );