WordPress: WPMU Functions/get blog details:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: 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 ...)
(没有差异)

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
 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