WordPress:WPMU Functions/get blog list
来自站长百科
Returns a stdClass Object of blogs with each in the following format:
stdClass Object ( [blog_id] => 1 [site_id] => 1 [domain] => sub.example.com [path] => /pathname/ [registered] => 2008-01-01 01:00:00 [last_updated] => 2008-01-01 01:00:00 [public] => 1 [archived] => 0 [mature] => 0 [spam] => 0 [deleted] => 0 [lang_id] => 0 [blogname] => Blog Name [siteurl] => http://sub.example.com/pathname [post_count] => 1 )
Note
Orders the blog list by registered date in descending order (oldest to newest). As such, using start and end may slice blogs other than than those desired. An improvement to this would be to sort by blog_id, blogname or even allowing the developer to specify their own order (for example: get_blog_list(0,10,true,blogname).
Return to WordPress:WPMU_Functions