! 各ページ右上の画像広告経由でコンピュータウィルスがダウンロードされた可能性があります。ウィルスチェックをお願いします。詳しくは http://bono.s201.xrea.com/2008/06/693-virus_by_xrea_ad/ をご覧ください。ご迷惑をおかけしてしまい大変申し訳ありません。
関数リファレンス
出典: ps*wiki
WordPress Codex 日本語版 » 関数リファレンス
このページは上記リンク先へ移転しました。今後は移転先をご利用ください。WordPress ドキュメント横断検索を使うと、両サイトのドキュメントをまとめて検索できます。
以下に掲載されている情報は 2008年5月4日以降更新されていません。既に古くなっている可能性があります。
WordPress のファイルには、便利な PHP 関数がたくさん定義されています。テンプレートタグとして知られる一部の関数は、特に WordPress テーマ用に定義されているものです。また、主にプラグインの開発に用いるアクションフック・フィルターフックに関する関数(プラグイン API)もあります。あとは WordPress のコア機能の形成に使われます。
コアの WordPress 関数の多くはプラグイン開発にも便利で、ものによってはテーマの開発にも使えるかもしれません。このページは、コア関数の大部分をカテゴリ別に一覧表にしたものです。関数名から別ページの詳細説明へリンクしているものもあります。各カテゴリは、関数が書かれているコアファイル(WordPress のディレクトリの wp-includes 内にあり)の一覧でもあります。
注:
- このリファレンスは WordPress バージョン 2.1 を対象としており、非推奨となった関数は含まれていません。WordPress バージョン 2.0.x 向けの不完全なページは Function Reference 2.0.x(英語)にあります。
- テンプレートタグに掲載しているテンプレート用の関数(
wp-includes/*_template.phpにあるもの)は、以下の一覧には載せていません。 - WordPress Functions History Tool(非公式ツール)は、ある関数が追加/削除された時点を知るのに役立ちます。
You can help make this page more complete!
Here are some things you can do to help:
- Add documentation to un-documented functions, by creating sub-pages or at least by adding short comments in the lists below. If you create a subpage for a function, please include information and examples of usage of that function, if possible, per the examples found in Template Tags.
- List more functions here, following the category structure.
- Remove functions from the list, if you think they could not possibly be useful to plugin developers, or if they have been deprecated.
- Correct errors by moving functions to better categories where appropriate, and of course fixing typos. Note that it is OK for a function to appear in more than one category.
Read Contributing to WordPress to find out more about how you can contribute to the effort!
Functions by category
Post, Page, and Attachment FunctionsThese functions are contained in
|
Category, Tag and Taxonomy FunctionsFunctions surrounding the WordPress Terms tables, encompassing categories and tags for classifying posts, pages, links, etc. Category functions in
Tag Functions in
Term Functions in
Other Category Functions
|
User and Author FunctionsThese functions are in
|
Feed FunctionsThese functions are in
|
Comment, Ping, and Trackback FunctionsThese functions are found in
|
Action, Filter, and Plugin FunctionsThese functions are contained in |
Theme-Related FunctionsThese functions are found in
|
Formatting FunctionsThese functions are contained in
|
Miscellaneous FunctionsThese functions are contained in Time/Date Functions
Serialization
Options
XMLRPC
Localization See also Translating WordPress.
Cron (Scheduling)
Miscellaneous
|
ClassesThe following classes were created by WordPress developers, and are found in files
The following classes were created by outside developers, and are found in files
|
原文・最新版: WordPress Codex » Function Reference (最新版との差分)
カテゴリ: 未翻訳 | Advanced Topics | 関数 | WordPress の開発
