WordPress:WPMU Functions/get blog details

来自站长百科
Xxf3325讨论 | 贡献2008年9月26日 (五) 13:55的版本 (新页面: Gets general blog information (pulls from table wp_blogs). Data this can return for a single blog includes: blog_id site_id domain path registered last_updated public ...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Gets general blog information (pulls from table wp_blogs).

Data this can return for a single blog includes:

 blog_id
 site_id
 domain 
 path 
 registered
 last_updated
 public
 archived
 mature 
 spam 
 deleted
 lang_id

Usage

To return all items, use the following syntax:

 $result = get_blog_details($blogId);

To return a single item, you can use the following:

 $result = get_blog_details($blogId)->path;

Return to WordPress:WPMU_Functions