WordPress:WPMU Functions/get blog option

来自站长百科
Xxf3325讨论 | 贡献2008年9月26日 (五) 14:16的版本 (新页面: Returns data on a specific blog (pulls from the wp_#_options table). You can get the following items: siteurl blogname blogdescription wp_#_user_roles users_can_register a...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Returns data on a specific blog (pulls from the wp_#_options table).

You can get the following items:

 siteurl
 blogname
 blogdescription 
 wp_#_user_roles
 users_can_register 
 admin_email 
 start_of_week 
 use_balanceTags 
 use_smilies 
 require_name_email 
 comments_notify 
 posts_per_rss 
 rss_excerpt_length
 rss_use_excerpt
 mailserver_url 
 mailserver_login 
 mailserver_pass 
 mailserver_port 
 default_category 
 default_comment_status 
 default_ping_status 
 default_pingback_flag 
 default_post_edit_rows 
 posts_per_page
 what_to_show 
 date_format 
 time_format 
 links_updated_date_format
 links_recently_updated_prepend
 links_recently_updated_append 

Usage

To get the blog name, you would use the following:

 get_blog_option($blogId,'blogname')

Return to WordPress:WPMU_Functions