オプション リファレンス -> 一般 (General)

Posted by muchag | WordPress |
初回投稿:2011-03-20 (日) 4:46:13 | 最終更新:2011-03-20 (日) 5:16:36

admin_email

Administrator email
Default: ‘you@example.com’
Data type: String
 

blogdescription

Blog tagline
Default: ‘__(‘Just another WordPress weblog’)’
Data type: String
 

blogname

Blog title
Default: ‘__(‘My Blog’)’
Data type: String
 

comment_registration

Users must be registered and logged in to comment
1 : Yes
0 : No (default)
Data type: Integer
 

date_format

Default date format (see Formatting Date and Time)
Default: ‘__(‘F j, Y’)’
Data type: String
 

default_role

The default role of users who register at the blog.
subscriber : (default)
administrator :
editor :
author :
contributor :
Data type: String
 

gmt_offset

Times in the blog should differ by this value.
-6 : GMT -6 (aka Central Time, USA)
0 : GMT (aka Greenwich Mean Time)
Default: date(‘Z’) / 3600
Data type: Integer
 

home

Blog address (URL)
Default: wp_guess_url()
Data type: String (URI)
 

siteurl

WordPress address (URL)
Default: wp_guess_url()
Data type: String (URI)
 

3.1 での挙動
get_option

単一ブログの場合は サイトURL = WordPress インストールディレクトリ = 当該ブログのパス を返す。
マルチサイトの場合は サイトURL = 当該ブログのパス を返す。
 

get_site_option

単一ブログであろうがマルチサイトであろうが
当該ブログの サイトURL = WordPress インストールディレクトリ を返す。
 

start_of_week

The starting day of the week. Default is 0 (Sunday).
0 : Sunday
1 : Monday (default)
2 : Tuesday
3 : Wednesday
4 : Thursday
5 : Friday
6 : Saturday
Data type: Integer
 

time_format

Default time format (see Formatting Date and Time)
Default: ‘__(‘g:i a’)’
Data type: String
 

users_can_register

Anyone can register
1 : Yes
0 : No (default)
Data type: Integer
 

timezone_string

Timezone
Default: NULL
Data type: String

Posted by muchag | WordPress |
初回投稿:2011-03-20 (日) 4:46:13 | 最終更新:2011-03-20 (日) 5:16:36

オプション リファレンス -> ディスカッション (Discussion)

Posted by muchag | WordPress |
初回投稿:2011-03-20 (日) 4:36:17 | 最終更新:2011-03-20 (日) 4:36:17

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.”
Default: NULL
Data type: String (possibly multi-line)
 

comment_max_links

Hold a comment in the queue if it contains the value of this option or more.
Default: 2
Data type: Integer
 

comment_moderation

Before a comment appears, an administrator must always approve the comment.
1 : Yes
0 : True (default)
Data type: Integer
 

comments_notify

E-mail me when anyone posts a comment.
1 : Yes (default)
0 : No
Data type: Integer
 

default_comment_status

Allow comments (can be overridden with individual posts)
open : Allow comments (default)
closed : Disallow comments
Data type: String
 

default_ping_status

Allow link notifications from other blogs (pingbacks and trackbacks).
open : Allow pingbacks and trackbacks from other blogs (default)
closed : Disallow pingbacks and trackbacks from other blogs
Data type: String
 

default_pingback_flag

Attempt to notify any blogs linked to from the article (slows down posting).
1 : Yes (default)
0 : No
Data type: Integer
 

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.”
Default: NULL
Data type: String (possibly multi-line)
 

moderation_notify

E-mail me when a comment is held for moderation.
1 : Yes (default)
0 : No
Data type: Integer
 

require_name_email

Before a comment appears, the comment author must fill out his/her name and email.
1 : Yes (default)
0 : No
Data type: Integer
 

thread_comments

Enable WP-native threaded (nested) comments.
1 : Yes
0 : No (default)
Data type: Integer
 

thread_comments_depth

Set the number of threading levels for comments.
1 thru 10 : levels
Default: 5
Data type: Integer
 

show_avatars

Avatar Display
1 : Yes – (default) Show Avatars
0 : No – Don’t show Avatars
Data type: Integer
 

avatar_rating

Maximum Rating
G : (default) Suitable for all audiences
PG : Possibly offensive, usually for audiences 13 and above
R : Intended for adult audiences above 17
X : Even more mature than above
Data type: String
 

avatar_default

Default Avatar
mystery : (default) Mystery Man
blank : Blank
gravatar_default : Gravatar Logo
identicon : Identicon (Generated)
wavatar : Wavatar (Generated)
monsterid : MonsterID (Generated)
Data type: String
 

close_comments_for_old_posts

Automatically close comments on old articles
1 : Yes
0 : No (default)
Data type: Integer
 

close_comments_days_old

Automatically close comments on articles older than x days
Default: 14
Data type: Integer
 

page_comments

Break comments into pages
1 : Yes (default)
0 : No
Data type: Integer
 

comments_per_page

Default: 50
Data type: Integer
 

default_comments_page

Default: ‘newest’
Data type: String
 

comment_order

asc : (default)
desc :
Data type: String
 

comment_whitelist

Comment author must have a previously approved comment
1 : Yes (default)
0 : No
Data type:

Posted by muchag | WordPress |
初回投稿:2011-03-20 (日) 4:36:17 | 最終更新:2011-03-20 (日) 4:36:17

オプション リファレンス

Posted by muchag | WordPress |
初回投稿:2011-03-20 (日) 3:30:27 | 最終更新:2011-03-20 (日) 5:19:10

関数に設定するオプションの内容一覧。
管理画面の左ペインに合わせて分類されている。
その多くが 設定 項目にある。

本当は WordPress Codex 日本語版の方に書き込むのがよいんだけど
間違いをしてしまうのが恐れ多いので・・・。

参考元:WordPress Codex Option Reference

ディスカッション (Discussion)

ディスカッション (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.”
comment_max_links Hold a comment in the queue if it contains the value of this option or more.
comment_moderation Before a comment appears, an administrator must always approve the comment.
comments_notify E-mail me when anyone posts a comment.
default_comment_status Allow comments (can be overridden with individual posts)
default_ping_status Allow link notifications from other blogs (pingbacks and trackbacks)
default_pingback_flag Attempt to notify any blogs linked to from the article (slows down posting).
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.”
moderation_notify E-mail me when a comment is held for moderation.
require_name_email Before a comment appears, the comment author must fill out his/her name and email.
thread_comments Enable WP-native threaded (nested) comments.
thread_comments_depth Set the number of threading levels for comments.
show_avatars Avatar Display
avatar_rating Maximum Rating
avatar_default Default Avatar
close_comments_for_old_posts Automatically close comments on old articles
close_comments_days_old Automatically close comments on articles older than x days
page_comments Break comments into pages
comments_per_page
default_comments_page
comment_order
comment_whitelist Comment author must have a previously approved comment

 

一般 (General)

オプション リファレンス -> 一般 (General)

オプション 内容
admin_email Administrator email
blogdescription Blog tagline
blogname Blog title
comment_registration Users must be registered and logged in to comment
date_format Default date format (see Formatting Date and Time)
default_role The default role of users who register at the blog.
gmt_offset Times in the blog should differ by this value.
home Blog address (URL)
siteurl WordPress address (URL)
start_of_week The starting day of the week. Default is 0 (Sunday).
time_format Default time format (see Formatting Date and Time)
users_can_register Anyone can register
timezone_string Timezone

 

リンク (Links)

リンク (Links)

オプション 内容
links_updated_date_format
links_recently_updated_prepend
links_recently_updated_append
links_recently_updated_time

 

メディア (Media)

メディア (Media)

オプション 内容
thumbnail_size_w
thumbnail_size_h
thumbnail_crop Crop thumbnail to exact dimensions (normally thumbnails are proportional)
medium_size_w
medium_size_h
large_size_w
large_size_h
embed_autourls Attempt to automatically embed all plain text URLs
embed_size_w
embed_size_h

 

? (Miscellaneous)

? (Miscellaneous)

オプション 内容
hack_file Use legacy my-hacks.php file support
html_type Default MIME type for blog pages (text/html, text/xml+html, etc.)
secret Secret value created during installation used with salting, etc.
upload_path Store uploads in this folder (relative to the WordPress root)
upload_url_path URL path to upload folder (will be blank by default – Editable in Settings -> Miscellaneous)
uploads_use_yearmonth_folders Organize my uploads into month- and year-based folders
use_linksupdate Track links’ update times

 

パーマリンク設定 (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 Using Permalinks.
category_base The default category base of your blog categories permalink.
tag_base The default tag base for your blog tags permalink.

 

プライバシー (Privacy)

プライバシー (Privacy)

オプション 内容
blog_public 1 : I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers. (default)
0 : I would like to block search engines, but allow normal visitors.

 

表示設定 (Reading)

表示設定 (Reading)

オプション 内容
blog_charset Encoding for pages and feeds. The character encoding you write your blog in (UTF-8 is recommended).
gzipcompression WordPress should compress articles (with gzip) if browsers ask for them.
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.
page_for_posts The ID of the page that displays posts. Useful when show_on_front’s value is page.
posts_per_page Show at most x many posts on blog pages.
posts_per_rss Show at most x many posts in RSS feeds.
rss_language Language for RSS feeds (metadata purposes only)
rss_use_excerpt Show an excerpt instead of the full text of a post in RSS feeds
show_on_front What to show on the front page
posts : Your latest posts (default)
page : A static page (see page_on_front)

 

テーマ? (Themes)

テーマ? (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)
stylesheet The slug of the currently activated stylesheet (style.css) (how it is accessed by path, ex. /wp-content/themes/some-theme: some-theme would be the value)

 

投稿設定 (Writing)

投稿設定 (Writing)

オプション 内容
default_category ID of the category that posts will be put in by default
default_email_category ID of the category that posts will be put in by default when written via e-mail
default_link_category ID of the category that links will be put in by default
default_post_edit_rows Size of the post box (in lines)
mailserver_login Mail server username for posting to WordPress by e-mail
mailserver_pass Mail server password for posting to WordPress by e-mail
mailserver_port Mail server port for posting to WordPress by e-mail
mailserver_url Mail server for posting to WordPress by e-mail
ping_sites When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see Update Services. Separate multiple service URLs with line breaks. Requires blog_public to have a value of 1.
use_balanceTags Correct invalidly-nested XHTML automatically
use_smilies Convert emoticons like 🙂 and 😛 to graphics when displayed
use_trackback Enable sending and receiving of trackbacks
enable_app Enable the Atom Publishing Protocol
enable_xmlrpc Enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols

 

? (?)

? (?)

オプション 内容
active_plugins
advanced_edit
recently_edited
image_default_link_type
image_default_size
image_default_align
sticky_posts
widget_categories
widget_text
widget_rss
Posted by muchag | WordPress |
初回投稿:2011-03-20 (日) 3:30:27 | 最終更新:2011-03-20 (日) 5:19:10

get_option

Posted by muchag | WordPress |
初回投稿:2011-03-20 (日) 2:49:10 | 最終更新:2011-03-21 (月) 15:54:16