WordPress: Developer Documentation:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
第1行: 第1行:
== Introduction ==
WordPress believes in keeping it simple, and a lot of thought goes into including new functionality as a part of the "core" WordPress code, in order to keep WordPress fast and lightweight.  Still, users often find the need to graft additional functionality onto WordPress to meet their needs. This section of the Codex offers guidelines and references for anyone wishing to modify, extend, or contribute to WordPress.
You may also wish to consult the [[FAQ Developer Documentation|Developer Documentation FAQ]]
== 介绍 ==
== 介绍 ==
为了让WordPress保持快速可轻巧,WordPress信仰保持简单,探究大量包含新功能的想法,作为WordPress"核心"代码的一部分。尽管如此,用户经常寻找并使用有附加功能的主题以满足他们的需要。Codex中的这部分为希望修改扩展WordPress或者为WordPress做贡献的人提供了指导和参考。
为了让WordPress保持快速可轻巧,WordPress信仰保持简单,探究大量包含新功能的想法,作为WordPress"核心"代码的一部分。尽管如此,用户经常寻找并使用有附加功能的主题以满足他们的需要。Codex中的这部分为希望修改扩展WordPress或者为WordPress做贡献的人提供了指导和参考。


你可能需要参考[[FAQ Developer Documentation|开发者文档常见问题]]
你可能需要参考[[FAQ Developer Documentation|开发者文档常见问题]]
<div style="clear: both;"></div>
<div style="margin:5px; padding:5px; border:2px solid #F22; text-align:center;"><div style="color:#F55; font-size:110%; font-weight:bold;">Programming Code Ahead</div>
In the following articles you may encounter programming terms that are not explained in the usual level of detail required for understanding by non-programmers.
Although the alteration of the downloadable files for WordPress is limited to a few distinct programmers, every WordPress user has the ability to affect change in the core WordPress code, making WordPress highly customizable.</div>


<div style="clear: both;"></div>
<div style="clear: both;"></div>
第25行: 第11行:


尽管可下载的WordPress文件仅限于一些特殊的程序员,每个WordPress用户都可以更改核心WordPress代码,这使得WordPress可以很自由的定制。</div>
尽管可下载的WordPress文件仅限于一些特殊的程序员,每个WordPress用户都可以更改核心WordPress代码,这使得WordPress可以很自由的定制。</div>
== Theme Development ==
* [[Theme Development]] - References and resources about designing and developing WordPress Themes
* [[Templates]] - References for WordPress Theme development
* [http://themes.wordpress.net WordPress Theme Viewer] - Hosts WordPress Themes for download
* [[Template Tags]] - PHP functions created specifically for use in Themes
* [[Function Reference]] - Complete PHP function reference for WordPress
* [[WordPress Deprecated Functions Hook]] - Information on deprecated functions hooks
* [[Migrating Plugins and Themes]] - Contains information on how to upgrade your Theme so it will work from version to version of WordPress
* [[WordPress Coding Standards]] - General information about coding standards for WordPress development and code writing
* [[Designing Themes for Public Release]] - Tips and techniques for designing WordPress Themes for release to the general public.


== 主题开发 ==
== 主题开发 ==
第50行: 第23行:
* [[WordPress Coding Standards| WordPress编码标准]] – 关于WordPress开发和代码编写的编码标准的一般信息。
* [[WordPress Coding Standards| WordPress编码标准]] – 关于WordPress开发和代码编写的编码标准的一般信息。
* [[Designing Themes for Public Release|为公开发行设计主题]] – 为公开发行设计WordPress主题的小提示和技巧
* [[Designing Themes for Public Release|为公开发行设计主题]] – 为公开发行设计WordPress主题的小提示和技巧
== Plugin Development ==
* [[Writing a Plugin]] - Best starting place for learning about how to develop plugins
* [[Plugin Resources]] - Comprehensive list of other references for plugin development
* [[Plugin API]] - Hooks, Actions, and Filters to use in your Plugins (version 2.1; has links to older version articles)
* [[Function Reference]] - Complete PHP function reference for WordPress (version 2.1, with links to previous versions)
* [[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
* [[Shortcode API]] - A tutorial and reference for the shortcode API (new in version 2.5)


== 插件开发 ==
== 插件开发 ==
第72行: 第34行:
* [[Plugin Submission and Promotion|插件提交和发展]] – 一旦你完成了你的插件,这里是一些关于广泛的发布插件的提示
* [[Plugin Submission and Promotion|插件提交和发展]] – 一旦你完成了你的插件,这里是一些关于广泛的发布插件的提示
* [[Shortcode API| 短代码API]] –shortcode API的指南和参考(2.5版的新内容)
* [[Shortcode API| 短代码API]] –shortcode API的指南和参考(2.5版的新内容)
== 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.


== 为WordPress做贡献 ==
== 为WordPress做贡献 ==
第82行: 第39行:
* [[Contributing to WordPress|为WordPress做贡献]] – 如果你想为WordPress核心开发,文档,支持,翻译或者财政做贡献,这里将是你最主要的起点
* [[Contributing to WordPress|为WordPress做贡献]] – 如果你想为WordPress核心开发,文档,支持,翻译或者财政做贡献,这里将是你最主要的起点
* [[Automated Testing|自动化测试]] – 使用自动测试工具进行WordPress测试以及如何使用这些工具和撰写测试案例
* [[Automated Testing|自动化测试]] – 使用自动测试工具进行WordPress测试以及如何使用这些工具和撰写测试案例
== Forums, Lists, and Blogs ==
* [[Mailing Lists]] - WordPress mailing lists for documentation and development
* [[IRC]] - WordPress IRC channels
* http://wordpress.org/support - WordPress Support Forums
* http://wordpress.org/development - WordPress Development Blog
* http://planet.wordpress.org - Aggregate of many blogs discussing WordPress (official)
* http://planetwordpress.planetozh.com/ - Another aggregate of many blogs discussing WordPress mostly plugins and themes (unofficial)


== 论坛, 列表和Blog ==
== 论坛, 列表和Blog ==
第100行: 第48行:
* http://planet.wordpress.org – 讨论WordPress的blog集合 (官方的)
* http://planet.wordpress.org – 讨论WordPress的blog集合 (官方的)
* http://planetwordpress.planetozh.com/ - 另一个主要讨论WordPress插件和主题的blog集合(非官方的)
* http://planetwordpress.planetozh.com/ - 另一个主要讨论WordPress插件和主题的blog集合(非官方的)
== 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


== 另外一些感兴趣的信息 ==
== 另外一些感兴趣的信息 ==
第114行: 第55行:
* [[Reporting Bugs|错误报告]] – 有关报告和修正WordPress错误的信息
* [[Reporting Bugs|错误报告]] – 有关报告和修正WordPress错误的信息
* [[Using Subversion|使用子版本]] – SVN和WordPress使用的源代码的介绍
* [[Using Subversion|使用子版本]] – SVN和WordPress使用的源代码的介绍
== External Resources ==
WordPress Source Code
* [http://phpxref.com/xref/wordpress/ PHPXref for WordPress] - Cross reference of WordPress files, functions, and variables, which seems to track the latest released version of WordPress. [http://xref.redalt.com/ This redalt.com PHPXref site] has the bleeding-edge Trunk version, as well as 1.5 and 2.0, but the Trunk version may not be updating any more. So, there is now a [http://sandbox.ftwr.co.uk/wp/ new Trunk Xref site on ftwr.co.uk] available.
* [http://planetozh.com/projects/wordpress-functions-history/table_light.html WordPress Function History Table] - List of what version each WordPress function was added in; PlanetOzh recommends: "''see related [http://planetozh.com/blog/2007/10/wordpress-functions-implementation-history-tool/ WordPress Functions Implementation History Tool] for more information (and for a more usable tool)''"
* [http://dd32.id.au/wp-2.4-variable-report.html WordPress Variable Report] - A list of WordPress functions, listing what version of PHP every function requires (and if there's a compatible function available), what varables/arguments in functions are unused, and what functions/variables each class contains (and their default values).
* [http://www.google.com/coop/cse?cx=003089488824223329442%3Avwjqws2iu5u  WordPress Development Search (Google CSE)]


== 外部资源 ==
== 外部资源 ==
第130行: 第63行:
* [http://dd32.id.au/wp-2.4-variable-report.html WordPress 变量报告] – WordPress函数列表,列出了每个函数要求哪个版本的PHP(如果有某个兼容函数可用的话), 函数中什么变量没有用到,以及每个类都包含哪些函数/变量(和它们的默认值).
* [http://dd32.id.au/wp-2.4-variable-report.html WordPress 变量报告] – WordPress函数列表,列出了每个函数要求哪个版本的PHP(如果有某个兼容函数可用的话), 函数中什么变量没有用到,以及每个类都包含哪些函数/变量(和它们的默认值).
* [http://www.google.com/coop/cse?cx=003089488824223329442%3Avwjqws2iu5u  WordPress开发搜索 (Google CSE)]
* [http://www.google.com/coop/cse?cx=003089488824223329442%3Avwjqws2iu5u  WordPress开发搜索 (Google CSE)]
Other Resources
* [http://www.php.net/manual/en PHP Manual]
* [http://dev.mysql.com/doc/mysql/en/index.html MySQL Manual]
* [http://subversion.tigris.org/ Subversion Home Page]


其他资源
其他资源

2008年5月6日 (二) 15:10的版本

介绍

为了让WordPress保持快速可轻巧,WordPress信仰保持简单,探究大量包含新功能的想法,作为WordPress"核心"代码的一部分。尽管如此,用户经常寻找并使用有附加功能的主题以满足他们的需要。Codex中的这部分为希望修改扩展WordPress或者为WordPress做贡献的人提供了指导和参考。

你可能需要参考开发者文档常见问题

写在程序代码之前

你可能看到的下面的文章中,编程术语不会使用普通水平的语言为非编程人员进行详细的解释。

尽管可下载的WordPress文件仅限于一些特殊的程序员,每个WordPress用户都可以更改核心WordPress代码,这使得WordPress可以很自由的定制。

主题开发

插件开发

  • 写插件 – 这里是学习如何开发插件最好的入门
  • 插件资源 – 插件开发的其他参考内容全面的列表
  • 插件API -用在你的插件中的Hooks, Actions, 和Filters (2.1版; 有链接到旧的版本相关文章)
  • 函数参考 – 针对WordPress的完整的PHP函数参考 (2.1版, 含有到旧版本的链接)
  • 移动插件和主题 – 包含关于如何升级插件来使它适用于更新的版本的信息
  • WordPress编码标准 – 关于WordPress开发的编码标准的一般信息
  • 插件提交和发展 – 一旦你完成了你的插件,这里是一些关于广泛的发布插件的提示
  • 短代码API –shortcode API的指南和参考(2.5版的新内容)

为WordPress做贡献

  • 为WordPress做贡献 – 如果你想为WordPress核心开发,文档,支持,翻译或者财政做贡献,这里将是你最主要的起点
  • 自动化测试 – 使用自动测试工具进行WordPress测试以及如何使用这些工具和撰写测试案例

论坛, 列表和Blog

另外一些感兴趣的信息

  • 高级话题 – 有关高级WordPress 话题的文章的注解列表
  • 查询总览 – 用来寻找文章并显示它们的WordPress 查询过程描述
  • 错误报告 – 有关报告和修正WordPress错误的信息
  • 使用子版本 – SVN和WordPress使用的源代码的介绍

外部资源

WordPress源代码

其他资源