WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

zh-tw:開發文件

介绍

WordPress 是一套具备快速,轻量,并容易开发特点的开源程序. 为了保持这样的特性, 开发团队 会将需要的新功能谨慎的添加到 WordPress 中去. 不过,用户通常会需要将额外的功能添加到 WordPress 中来满足他们的需求. 这个开发文档为任何希望修改,扩展或贡献 WordPress 的开发者提供指南和参考.


你可以在此查阅开发过程中遇到的的常见问题 开发文档 FQA

注意: 文档阅读前提
以下开发文档将可以使用编程相关的术语,而不提供对非程序员用户的详细解释.

尽管 WordPress 可下载文件的调整权限仅掌握在几个不同的程序员手中,但每个 WordPress 用户都能够修改 WordPress 的核心代码,从而使得 WordPress实现高度定制化服务.

Plugin Development

  • Plugin Developer Handbook - The best starting place for learning about how to develop plugins
  • WordPress Coding Standards - General information about coding standards for WordPress development
  • Debugging in WordPress - Reference and guide for using the built-in debugging system in WordPress.
  • Data Validation - A must-read for WordPress plugin authors. Describes the functions used by WordPress to validate and sanitize data. Plugin authors should be familiar with these functions and ideas.
  • Plugin Submission and Promotion - Once you have written your plugin, here are some hints on distributing it widely
  • Migrating Plugins and Themes - Contains information on how to upgrade your Plugin so it will work from version to version of WordPress
  • Function Reference - Complete PHP function reference for WordPress
  • Global Variables - A list of all global variables created by WordPress
  • Post Types - Creating new types of posts other than the posts that display on the main loop.
  • Taxonomies - Creating new types of taxonomies other than the built-in ones.
  • Reserved Terms - A list of reserved terms in WordPress.

APIs

  • Plugin API - Hooks, Actions, and Filters to use in your Plugins (version 2.1; has links to older version articles)
  • Shortcode API - A tutorial and reference for the shortcode API (new in version 2.5)
  • Dashboard Widgets API - A reference with examples for adding new widgets to the admin dashboard.
  • Settings API - A reference with examples for adding new settings to existing settings screens.
  • Options API - Details about the generic option storage system.
  • Transients API - Details about the temporary/time-constrained data storage system.
  • Widgets API - A reference with examples for creating widgets for use in sidebars.
  • Quicktags API - A reference for adding buttons to the HTML editor.
  • Rewrite API - Details about the URL rewriting API.
  • Theme Customization API - Details about the API for Theme Customization screen.
  • Filesystem API - Reference for reading and writing local files to the filesystem to be done securely, on a variety of host types.

Contributing to WordPress

  • Contributing to WordPress - Main starting point if you would like to contribute to core WordPress development, documentation, support, translations, or financial health
  • Automated Testing - Testing WordPress using the automated test suite and how to use the tools and write test cases.
  • Release Philosophy - The philosophy of WordPress releases.

Forums, Lists, and Blogs

Other Information of Interest

  • Advanced Topics - Annotated list of many articles on advanced WordPress topics
  • Query Overview - Description of the WordPress query process used to find posts and display them
  • Reporting Bugs - Information on reporting and fixing WordPress bugs
  • Using Subversion - Introduction to SVN, the source code repository used by WordPress
  • Development Team - The members of the development team.

Other Resources

About WordPressGetting Started with WordPressWorking with WordPressBlog Design and LayoutAdvanced TopicsTroubleshootingDeveloper DocumentationCurrent Events
中文(繁體)
(Add your language)

</p>

導論

WorePress 相信保持簡單可為 WordPress 保有快速和輕巧,即便是有著一堆想法被引入作為 WordPress "核心"程式碼新功能性的一部分。直到現在,用戶仍經常發現需要為 WordPress 添加新功能以滿足他們的需求。本節的 Codex 提供指導和參考給任何想要修改、擴展,或有助於使用 WordPress 的人。

您或許也會想要看看 開發者文件 FAQ

警告:程式設計專業術語

以下的文章中,你或許會讀到許多程式設計的專業術語,但是並未以非程式設計師可以理解的程度來解釋這些細節。

雖然僅限於少數個別的程式設計師可以變更 WordPress 可供下載的檔案,但是每一位 WordPress 使用者對於 WorePress 核心碼的變更都具有影響力,以便讓 WordPress 具有高度的客製化能力。

佈景主題開發

外掛開發

  • Writing a Plugin - 學習有關如何開發外掛的最佳起點。
  • Plugin Resources - 開發外掛的其他參考資料之綜合清單。
  • Plugin API - 用在你的外掛中的 Hooks, Actions, 及 Filters (2.1版;亦連結到較舊版本的文章)
  • Function Reference - Complete PHP function reference for WordPress (version 2.1, with links to previous versions)
  • Shortcode API - A tutorial and reference for the shortcode API (new in version 2.5)
  • Dashboard Widgets API - A reference with examples for adding new widgets to the admin dashboard.
  • Settings API - A reference with examples for adding new settings to existing settings screens.
  • Data Validation - 一個對於 WordPress 外掛作者來說 必讀 的文件,描述被 WordPress 所使用的函數要如何驗證以及淨化資料,外掛作者應該要熟悉這些函數與概念。
  • Migrating Plugins and Themes - Contains information on how to upgrade your Plugin so it will work from version to version of WordPress
  • WordPress Coding Standards - General information about coding standards for WordPress development
  • Plugin Submission and Promotion - Once you have written your plugin, here are some hints on distributing it widely
  • Widgets API - A reference with examples for creating widgets for use in sidebars

對 Wordpress 的貢獻

  • Contributing to WordPress - Main starting point if you would like to contribute to core WordPress development, documentation, support, translations, or financial health
  • Automated Testing - Testing WordPress using the automated test suite and how to use the tools and write test cases.
  • Data Validation - A must-read for WordPress contributors. Describes the functions used by WordPress to validate and sanitize data. Developers contributing to WordPress' codebase should be familiar with these functions and ideas.

論壇、列表及部落格


其他您可能感興趣的資訊

  • Advanced Topics - Annotated list of many articles on advanced WordPress topics
  • Query Overview - Description of the WordPress query process used to find posts and display them
  • Reporting Bugs - Information on reporting and fixing WordPress bugs
  • Using Subversion - Introduction to SVN, the source code repository used by WordPress
  • Development Team - The members of the development team.

外部資源

WordPress Hooks

WP Hook Database - Thorough and extremely useful reference of all hooks (actions and filters) used in WordPress cross referenced by version.

WordPress 原始碼

其他資源

About WordPressGetting Started with WordPressWorking with WordPressBlog Design and LayoutAdvanced TopicsTroubleshootingDeveloper DocumentationCurrent Events