站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Option Reference
”
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
Xxf3325
(
讨论
|
贡献
)
2008年4月28日 (一) 15:30的版本
(新页面: __NOTOC__
Options
are pieces of data that WordPress uses to store various preferences and configuration settings. Listed below are the options, along with ...)
(差异) ←上一版本 |
最后版本
(
差异
) |
下一版本→
(
差异
)
跳转至:
导航
、
搜索
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
__NOTOC__ [[WordPress:Option Reference|Options]] are pieces of data that WordPress uses to store various preferences and configuration settings. Listed below are the options, along with some of the default values from the current WordPress install. By using the appropriate function, options can be [[WordPress:Function Reference/add_option|added]], [[WordPress:Function Reference/update_option|changed]], [[WordPress:Function Reference/delete_option|removed]], and [[WordPress:Function_Reference/get_option|retrieved]], from the [[WordPress:Database_Description#Table:_wp_options|wp_options table]]. This list accords to the WordPress 2.3.1 release, and does not include options that were deprecated by that version. Definitions are normally typed, possible option-values are bolded, and option-value definitions are italicized. Data types are given after the possible values (if those are given) like this: ''Data type:'' '''Integer''' <div style="border:blue 1px solid;padding:10px; background: #E6CCFF"> '''You can help make this page more complete!''' Here are some things you can do to help: * Add documentation to un-documented options, by adding a description, possible values, and the option's data type. * List more options here, following the category structure (if they are not already listed). * 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! </div> == View By Category == {| cellspacing="10" width="100%" |- valign="top" |bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| == Discussion == ; <tt>blacklist_keys</tt> : 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." : ''Data type:'' '''String (possibly multi-line)''' ; <tt>comment_max_links</tt> : Hold a comment in the queue if it contains the value of this option or more. : ''Data type:'' '''Integer''' ; <tt>comment_moderation</tt> : Before a comment appears, an administrator must always approve the comment. : '''1''' : ''Yes'' : '''0''' : ''True'' : ''Data type:'' '''Integer''' ; <tt>comments_notify</tt> : E-mail me when anyone posts a comment. : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>default_comment_status</tt> : Allow comments (can be overridden with individual posts) : '''open''' : ''Allow comments'' : '''closed''' : ''Disallow comments'' : ''Data type:'' '''String''' ; <tt>default_ping_status</tt> : Allow link notifications from other blogs (pingbacks and trackbacks). : '''open''' : ''Allow pingbacks and trackbacks from other blogs'' : '''closed''' : ''Disallow pingbacks and trackbacks from other blogs'' : ''Data type:'' '''String''' ; <tt>default_pingback_flag</tt> : Attempt to notify any blogs linked to from the article (slows down posting). : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>moderation_keys</tt> : 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." : ''Data type:'' '''String (possibly multi-line)''' ; <tt>moderation_notify</tt> : E-mail me when a comment is held for moderation. : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>require_name_email</tt> : Before a comment appears, the comment author must fill out his/her name and email. : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' |valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| == General == ; <tt>admin_email</tt> : Administrator email : ''Data type:'' '''String''' ; <tt>blogdescription</tt> : Blog tagline : ''Data type:'' '''String''' ; <tt>blogname</tt> : Blog title : ''Data type:'' '''String''' ; <tt>comment_registration</tt> : Users must be registered and logged in to comment : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>date_format</tt> : Default date format (see [[WordPress:Formatting Date and Time]]) : ''Data type:'' '''String''' ; <tt>default_role</tt> : The default role of users who register at the blog. : '''subscriber''' : : '''administrator''' : : '''editor''' : : '''author''' : : '''contributor''' : : ''Data type:'' '''String''' ; <tt>gmt_offset</tt> : Times in the blog should differ by this value. : '''-6''' : ''GMT -6 (aka Central Time, USA)'' : '''0''' : ''GMT (aka Greenwich Mean Time)'' : ''Data type:'' '''Integer''' ; <tt>home</tt> : Blog address (URL) : ''Data type:'' '''String (URI)''' ; <tt>siteurl</tt> : WordPress address (URL) : ''Data type:'' '''String (URI)''' ; <tt>start_of_week</tt> : The starting day of the week. Default is 0 (Sunday). : '''0''' : ''Sunday'' : '''1''' : ''Monday'' : '''2''' : ''Tuesday'' : '''3''' : ''Wednesday'' : '''4''' : ''Thursday'' : '''5''' : ''Friday'' : '''6''' : ''Saturday'' : ''Data type:'' '''Integer''' ; <tt>time_format</tt> : Default time format (see [[WordPress:Formatting Date and Time]]) : ''Data type:'' '''String''' ; <tt>users_can_register</tt> : Anyone can register : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' |- valign="top" |bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| === Miscellaneous === ; <tt>hack_file</tt> : Use legacy <tt>my-hacks.php</tt> file support : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>html_type</tt> : Default MIME type for blog pages (<tt>text/html</tt>, <tt>text/xml+html</tt>, etc.) : ''Data type:'' '''String (MIME type)''' ; <tt>secret</tt> : Secret value created during installation used with salting, etc. : ''Data type:'' '''String (MD5)''' ; <tt>upload_path</tt> : Store uploads in this folder (relative to the WordPress root) : ''Data type:'' '''String (relative path)''' ; <tt>uploads_use_yearmonth_folders</tt> : Organize my uploads into month- and year-based folders : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>use_linksupdate</tt> : Track links' update times : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' |valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| === Permalinks === ; <tt>permalink_structure</tt> : 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''' |- valign="top" |bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| === Privacy === ; <tt>blog_public</tt> : '''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''' |valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| === Reading === ; <tt>blog_charset</tt> : Encoding for pages and feeds. The character encoding you write your blog in (UTF-8 is recommended). : ''Data type:'' '''String''' ; <tt>gzipcompression</tt> : WordPress should compress articles (with gzip) if browsers ask for them. : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>page_on_front</tt> : 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''' ; <tt>posts_per_page</tt> : Show at most '''x''' many posts on blog pages. : ''Data type:'' '''Integer''' ; <tt>posts_per_rss</tt> : Show at most '''x''' many posts in RSS feeds. : ''Data type:'' '''Integer''' ; <tt>rss_excerpt_length</tt> : Length of excerpts displayed in RSS feeds. Requires ''rss_use_excerpt'' to have a value of '''1'''. : ''Data type:'' '''Integer''' ; <tt>rss_language</tt> : Language for RSS feeds (metadata purposes only) : ''Data type:'' '''String (ISO two-letter language code)''' ; <tt>rss_use_excerpt</tt> : Show an excerpt instead of the full text of a post in RSS feeds : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>show_on_front</tt> : What to show on the front page : '''posts''' : ''Your latest posts'' : '''page''' : ''A static page (see page_on_front)'' : ''Data type:'' '''String''' |- valign="top" |bgcolor="#fbfbef" style="border:1px solid #ffc9c9;padding:1em;padding-top:0.5em; color: black;" width="50%"| === Themes === ; <tt>template</tt> : 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''' |valign="top" bgcolor="#f0f0ff" style="border:1px solid #c6c9ff;padding:1em;padding-top:0.5em; color: black;" width="50%"| === Writing === ; <tt>default_category</tt> : ID of the category that posts will be put in by default : ''Data type:'' '''Integer''' ; <tt>default_email_category</tt> : ID of the category that posts will be put in by default when written via e-mail : ''Data type:'' '''Integer''' ; <tt>default_link_category</tt> : ID of the category that links will be put in by default : ''Data type:'' '''Integer''' ; <tt>default_post_edit_rows</tt> : Size of the post box (in lines) : ''Data type:'' '''Integer''' ; <tt>mailserver_login</tt> : Mail server username for posting to WordPress by e-mail : ''Data type:'' '''String''' ; <tt>mailserver_pass</tt> : Mail server password for posting to WordPress by e-mail : ''Data type:'' '''String''' ; <tt>mailserver_port</tt> : Mail server port for posting to WordPress by e-mail : ''Data type:'' '''Integer''' ; <tt>mailserver_url</tt> : Mail server for posting to WordPress by e-mail : ''Data type:'' '''String''' ; <tt>ping_sites</tt> : 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)''' ; <tt>use_balanceTags</tt> : Correct invalidly-nested XHTML automatically : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>use_smilies</tt> : Convert emoticons like <tt>:-)</tt> and <tt>:P</tt> to graphics when displayed : '''1''' : ''Yes'' : '''0''' : ''No'' : ''Data type:'' '''Integer''' ; <tt>use_trackback</tt> : Enable sending and receiving of trackbacks : '''1''' : ''Yes'' : '''0''' : ''No'' |}
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
模板:WordPress导航
(
查看源代码
)(受保护)