编辑“WordPress:WPMU Functions/get blog option

跳转至: 导航、​ 搜索
警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
Returns data on a specific blog (pulls from the wp_#_options table).
Returns data on a specific blog (pulls from the wp_#_options table).
返回某个博客的数据(来自wp_#_options表格)。


You can get the following items:
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


   siteurl
   siteurl
第75行: 第35行:


==Usage==
==Usage==
==用法==


To get the blog name, you would use the following:
To get the blog name, you would use the following:
你应该使用下面的内容,得到博客名称:
  get_blog_option($blogId,'blogname')


   get_blog_option($blogId,'blogname')
   get_blog_option($blogId,'blogname')
第89行: 第43行:


Return to [[WordPress:WPMU_Functions]]
Return to [[WordPress:WPMU_Functions]]
----
返回到 [[WordPress:WPMU_Functions| WPMU_Functions]]
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅Wordpress-mediawiki:版权的细节)。 未经许可,请勿提交受版权保护的作品!
取消 编辑帮助(在新窗口中打开)