选项是WordPress用来储存不同的参数和配置的多块数据。以下所列的是一些选项和一些来自当前WordPress安装的默认值。通过使用适当的函数,选项可以从wp_选项表中添加, 更改, 移除, 和重新找回。这个列表与WordPress2.3.1版本一致,而且不包含那个版本不认可的选项。
定义按一般地输入,可能选项值要是粗体的,而且选项值定义要斜体的。数据在可能的值(如果有的话)的后面,像:
数据类型: 整数
你可以帮助使这个页面更加地完善!
下面是一些你可以帮助做的事情:
- 通过添加一个描述,可能的值,和选项的数据描述,给无正式文件的选项添加文件。
- 在这儿列出更多的选项,遵循类别结构(如果它们还没有列出来)。
- Correct errors by moving functions to better categories where appropriate, and of course fixing typos.
- 通过将函数移到合适的更好的类别,当然还安装了打字稿,来更改错误。
Read WordPress:Contributing to WordPress to find out more about how you can contribute to the effort!
阅读给WordPress做贡献来找出更多的关于你可以怎样地给WordPress做贡献!
View By Category
通过类别浏览
Discussion
讨论
- blacklist_keys
- When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so "press" will match "WordPress."
- blacklist_keys
- 当一个评论的内容中包含以下的任何内容,如名字,URL,电子邮件,或者IP,这个评论就被认为是一个兜售信息。一个词或者每行的IP。它会匹配里面的词,因此"按住"会匹配WordPress。
- Data type: String (possibly multi-line)
- 数据类型: String (可能是多行)
- comment_max_links
- Hold a comment in the queue if it contains the value of this option or more.
- 评论_最大的_链接
- 在队列中保存一个评论,如果它包含了这个选项或者更多的选项的值。
- Data type: Integer
- 数据类型: 整数
- comment_moderation
- Before a comment appears, an administrator must always approve the comment.
- 评论_审核
- 在一个评论出现之前,一个管理者通常要批准评论。
- 1 : Yes
- 1 : 是的
- 0 : True
- 0 : 真的
- Data type: Integer
- 数据类型: 整数
- comments_notify
- E-mail me when anyone posts a comment.
- 评论_通报
- 当有人发表了一个评论之后,就发电子邮件给我。
- 1 : Yes
- 1 : 是的
- 0 : No
- 0 : 不是的
- Data type: Integer
- 数据类型: 整数
- default_comment_status
- Allow comments (can be overridden with individual posts)
- 默认的_评论_级别
- open : Allow comments
- 打开 : 允许评论
- closed : Disallow comments
- 关闭 : 不允许评论
- Data type: String
- 数据类型: String
- default_ping_status
- Allow link notifications from other blogs (pingbacks and trackbacks).
- 默认的_ping_级别
- 允许从其它的博客的链接通知(pingbacks和trackbacks)。
- open : Allow pingbacks and trackbacks from other blogs
- 打开 : 允许来自其它的博客的pingbacks 和trackbacks
- closed : Disallow pingbacks and trackbacks from other blogs
- 关闭 : 不允许来自其它的博客的pingbacks和trackbacks
- Data type: String
- 数据类型: String
- default_pingback_flag
- Attempt to notify any blogs linked to from the article (slows down posting).
- 默认_pingback_flag
- 试着通报任何一个从文章中链接到的博客(缓慢发帖速度)。
- 1 : Yes
- 0 : No
- Data type: Integer
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
- moderation_keys
- When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the moderation queue. One word or IP per line. It will match inside words, so "press" will match "WordPress."
- 审核_关键词
- 当一个评论内容包含了一下任何的词,名字,URL,电子邮件,或者IP,这个评论就会被放在了审核队列中。一个单词或者一行一个IP,它就会匹配里面的词,因此"按住" 就会匹配"WordPress。"
- Data type: String (possibly multi-line)
- 数据类型: String (可能是多行的)
- moderation_notify
- E-mail me when a comment is held for moderation.
- 审核_通知
- 当一个评论被留住评论的时候,给我写一封电子邮件。
- 1 : Yes
- 0 : No
- Data type: Integer
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
- require_name_email
- Before a comment appears, the comment author must fill out his/her name and email.
- 需要_名字_电子邮件
- 在一个评论出现之前,评论的作者必须填写他的/她的名字和电子邮件。
- 1 : Yes
- 0 : No
- Data type: Integer
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
|
|
General
一般的
- admin_email
- Administrator email
;管理_电子邮件 :管理者 电子邮件
- Data type: String
- 数据类型: 字符串
- blogdescription
- Blog tagline
- 博客描述
- 博客 tagline
- Data type: String
- 数据类型: 字符串
- blogname
- Blog title
- 博客名
- 博客 标题
- Data type: String
- 数据类型: 字符串
- comment_registration
- Users must be registered and logged in to comment
- 评论_注册
- 用户必须注册并且连接到评论
- 1 : Yes
- 0 : No
- Data type: Integer
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
- date_format
- Default date format (see WordPress:Formatting Date and Time)
- 日期_格式
- 默认日期格式(请看安排日期和时间格式
- Data type: String
- 数据类型: 字符串
- default_role
- The default role of users who register at the blog.
- 默认_角色
- 注册在博客上的用户的默认角色。
- subscriber :
- 订阅者 :
- administrator :
- 管理者 :
- editor :
- 编辑者 :
- author :
- 作者 :
- contributor :
- 贡献者 :
- Data type: String
- 数据类型: 字符串
- gmt_offset
- Times in the blog should differ by this value.
- gmt_offset
- 根据这个值,博客中的时期应该有所不同。
- -6 : GMT -6 (aka Central Time, USA)
- -6 : GMT -6 (aka 中央标准时间, 美国)
- 0 : GMT (aka Greenwich Mean Time)
- 0 : GMT (aka 格林尼治标准时间)
- Data type: Integer
- 数据类型: 整数
- home
- Blog address (URL)
- 主页
- 博客 地址(URL)
- Data type: String (URI)
- 数据 类型: 字符串 (URI)
- siteurl
- WordPress address (URL)
- 站点url
- WordPress地址 (URL)
- Data type: String (URI)
数据类型: 字符串(URI)
- start_of_week
- The starting day of the week. Default is 0 (Sunday).
- 一周_的_开始
- 一周开始的第一天。默认为0(星期天)。
- 0 : Sunday
- 1 : Monday
- 2 : Tuesday
- 3 : Wednesday
- 4 : Thursday
- 5 : Friday
- 6 : Saturday
- Data type: Integer
- 0 : 星期天
- 1 : 星期一
- 2 : 星期二
- 3 : 星期三
- 4 : 星期四
- 5 : 星期五
- 6 : 星期六
- 数据类型: 整数
- time_format
- Default time format (see WordPress:Formatting Date and Time)
- Data type: String
- users_can_register
- Anyone can register
- 1 : Yes
- 0 : No
- Data type: Integer
|
- 时间_格式
- 默认时间格式 (请看设定日期和时间格式是)
- 数据类型: 字符串
- 用户_可以_注册
- 任何人都可以注册
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
|
Miscellaneous
混杂的
- hack_file
- Use legacy my-hacks.php file support
- 1 : Yes
- 0 : No
- Data type: Integer
- html_type
- Default MIME type for blog pages (text/html, text/xml+html, etc.)
- Data type: String (MIME type)
- secret
- Secret value created during installation used with salting, etc.
- Data type: String (MD5)
- upload_path
- Store uploads in this folder (relative to the WordPress root)
- Data type: String (relative path)
- uploads_use_yearmonth_folders
- Organize my uploads into month- and year-based folders
- 1 : Yes
- 0 : No
- Data type: Integer
- use_linksupdate
- Track links' update times
- 1 : Yes
- 0 : No
- Data type: Integer
|
- hack_文件
- 使用 legacy my-hacks.php文件支持
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
- html_类型
- 博客网页默认的MIME 类型(text/html, text/xml+html, 等等。)
- 数据类型: 字符串(MIME 类型)
- 秘密
- 在使用salting等等安装时创建的秘密的值。
- 数据类型: 字符串 (MD5)
- 上传_路径
- 在这个文件夹上储存上载的内容(与WordPress根相关)
- 数据类型: 字符串 (相关的路径)
- 上载的内容_使用_年月_文件夹
- 将上传的内容按月份整理- 文件夹以年份为基础
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
- use_linksupdate
- 追溯链接的更新时间
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
|
Permalinks
Permalinks
- permalink_structure
- The desired structure of your blog's permalinks. Some examples:
- /%year%/%monthnum%/%day%/%postname%/ : Date and name based
- /archives/%post_id%/ : Numeric
- /%postname%/ : Post name-based
- You can see more examples by viewing WordPress:Using Permalinks.
- Data type: String
|
- permalink_结构
- 你的博客的permalinks想得到的结构。一些例子:
- /%年%/%月num%/%日%/%文章名%/ : 日期和名称基于
- /归档/%文章_id%/ : 数字的
- /%文章名%/ : 文章名为基础
:通过浏览使用Permalinks,你可以看到更多的例子。
- 数据类型: 字符串
|
Privacy
秘密
- blog_public
- 1 : I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers.
- 0 : I would like to block search engines, but allow normal visitors.
- Data type: Integer
|
- 博客_公共的
- 1 : 我希望每个人都能够看到我的博客,包括搜索引擎(像Google, Sphere, Technorati) 和 archivers.
- 0 : 我想要阻碍搜索引擎,但是允许一般的访客。
- 数据类型: 整数
|
Reading
阅读
- blog_charset
- Encoding for pages and feeds. The character encoding you write your blog in (UTF-8 is recommended).
- Data type: String
- gzipcompression
- WordPress should compress articles (with gzip) if browsers ask for them.
- 1 : Yes
- 0 : No
- Data type: Integer
- page_on_front
- The ID of the page that should be displayed on the front page. Requires show_on_front's value to be page.
- Data type: Integer
- posts_per_page
- Show at most x many posts on blog pages.
- Data type: Integer
- posts_per_rss
- Show at most x many posts in RSS feeds.
- Data type: Integer
- rss_excerpt_length
- Length of excerpts displayed in RSS feeds. Requires rss_use_excerpt to have a value of 1.
- Data type: Integer
- rss_language
- Language for RSS feeds (metadata purposes only)
- Data type: String (ISO two-letter language code)
- rss_use_excerpt
- Show an excerpt instead of the full text of a post in RSS feeds
- 1 : Yes
- 0 : No
- Data type: Integer
- show_on_front
- What to show on the front page
- posts : Your latest posts
- page : A static page (see page_on_front)
- Data type: String
|
- 博客_charset
- 为网页和feeds编码。字符编码 你在(推荐UTF-8)写你的博客。
- 数据 类型: 字符串
- gzipcompression
- 如果浏览器要求的话,WordPress 应该(用gzip)压缩文章。
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
- 在_首页的_网页
- 网页的ID应该显示在首页上。需要 显示_在_首页's value to be 网页.
- 数据类型: 整数
- 每个_网页上的_文章
- 博客网页上最多显示x 许多文章。
- 数据类型: 整数
- 每个_rss的_文章
- 在RSS feeds上最多显示x 许多文章。
- 数据类型: 整数
- rss_摘录_长度
- 摘录的长度显示在RSS feeds。需要rss_使用_摘录来拥有一个1的值。
- 数据类型: 整数
- rss_语言
- RSS feeds 的语言(只有元数据目的)
- 数据类型: 字符串 (ISO两个字母的语言代码)
- rss_使用_摘录
- Show an excerpt instead of the full text of a post in RSS feeds
- 1 : 是的
- 0 : 不是的
- 数据 类型: 整数
- 显示_在_首页
- 在首页上显示什么
- 文章 : 你最近的文章
- 网页 : 一个静态的网页 (看看_在_首页)
- 数据类型: 字符串
|
Themes
主题
- template
- The slug of the currently activated theme (how it is accessed by path, ex. /wp-content/themes/some-theme: some-theme would be the value)
- Data type: String
|
- 模板
- 当前激活主题的slug (它是怎样通过路径得到访问的, ex. /wp-content/themes/一些主题:某个主题会是那个值)
- 数据类型: 字符串
|
Writing
写
- default_category
- ID of the category that posts will be put in by default
- Data type: Integer
- default_email_category
- ID of the category that posts will be put in by default when written via e-mail
- Data type: Integer
- default_link_category
- ID of the category that links will be put in by default
- Data type: Integer
- default_post_edit_rows
- Size of the post box (in lines)
- Data type: Integer
- mailserver_login
- Mail server username for posting to WordPress by e-mail
- Data type: String
- mailserver_pass
- Mail server password for posting to WordPress by e-mail
- Data type: String
- mailserver_port
- Mail server port for posting to WordPress by e-mail
- Data type: Integer
- mailserver_url
- Mail server for posting to WordPress by e-mail
- Data type: String
- ping_sites
- When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see WordPress:Update Services. Separate multiple service URLs with line breaks. Requires blog_public to have a value of 1.
- Data type: String (possibly multi-line)
- use_balanceTags
- Correct invalidly-nested XHTML automatically
- 1 : Yes
- 0 : No
- Data type: Integer
- use_smilies
- Convert emoticons like :-) and :P to graphics when displayed
- 1 : Yes
- 0 : No
- Data type: Integer
- use_trackback
- Enable sending and receiving of trackbacks
- 1 : Yes
- 0 : No
|
- 默认的_类别
- 文章将会被置于默认的类别ID 。
- 数据类型: 整数
- 默认的_电子邮件_类别
- 当通过电子邮件写的时候,文章就会默认提交的类别的 ID
- 数据类型: 整数
- 默认的_链接_类别
- 链接被默认置入的类别的ID
- 数据类型: 整数
- 默认的_文章_编辑_rows
- 文章框的大小 (in lines)
- 数据类型: 整数
- 邮件服务器_注册
- 用来通过电子邮件向WordPress发表文章的邮件服务器用户名
- 数据类型: 字符串
- 邮件服务器_通过
- 通过电子邮件向WordPress发表文章的邮件服务器密码
- 数据类型: 字符串
- 邮件服务器_端口
- 通过电子邮件向WordPress发表文章的邮件服务器端口
- 数据类型: 整数
- 电子邮件服务器_url
- 通过电子邮件向WordPress发表文章的邮件服务器
- 数据类型: 字符串
- ping_站点
- 当你发表一篇新的文章,WordPress会自动地通知以下的站点更新服务。关于这个,请看更新服务。 用分行分开多个服务。需要博客_公共 有一个数值1.
- 数据类型: 字符串 (可能多行)
- 使用_balanceTags
- 自动地更正无用地嵌套的XHTML
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
- 使用_smilies
- 显示时, 转换emoticons 像:-) 和:P 为图形
- 1 : 是的
- 0 : 不是的
- 数据类型: 整数
- 使用_trackback
- 是能够发出和收到trackbacks
- 1 : 是的
- 0 : 不是的
|