問題描述

我正在尋找 WordPress 圖表/圖表系統設計。

我只發現了模板層次圖,但它只是系統的一部分。

來源:http://upload.wikimedia.org/wikipedia/commons/3/3d/Wordpress_Template_Hierarchy.png

最佳解決方案

不止一個答案,這是一個研究和彙編。資料庫描述已經在 Damien 答案。



Google search 在 WordPress 論壇中顯示:

UML documentation of WordPress
As far as I know, that’s all we have. If you want to write one, I’m sure it’d be welcomed 🙂
(Ipstenu, referring to the Database Description)

UML of WordPress MU?
There will likely never be UML diagrams of WordPress because it’s not an OO system. Some parts are OO-like, but overall it’s whatever that particular code contributor made work. There’s no map, just code.

And IMO, the point of UML is that it’s done in the architecting phase. A project like WordPress would be hard-pressed to have this since it’s a fluid integration of independent developers contributing to the core.
[…]

Welcome to open source.



注意:OPM 中 WikiMedia 的模板層次結構與 Codex 中的模板層次不同點選放大

但是,Chip Bennet 有一個擴充套件的:)



我以為這個問題與以下內容重複 (但是 mods 表示不是這樣):Where can I find a real architecture document on WordPress?

在其中,Mike Schinkel 說:

These generally are not some the open-source WordPress community focuses on doing.

一個答案指向一個 old article 與該圖:

另一個到這個 WordPress 3.0 Program Flow (PDF)



Rarst 對此問題的回答 (When should you use WP_Query vs query_posts() vs get_posts()?) 對 WP_Query 有一個很好的概述:



另一個來自 Rarst 的 core load

http://www.rarst.net/images/wordpress_core_load.png



最後,一個完全不相關的關於效能的問題 (Refactoring WordPress to improve memory performance),但是非常好的圖形:)

次佳解決方案

如果您正在尋找資料庫模式,there is a version on the Codex

點選放大

您在帖子中引用的影像是主題開發人員最常用的模板層次結構。

參考文獻

注:本文內容整合自 Google/Baidu/Bing 輔助翻譯的英文資料結果。如果您對結果不滿意,可以加入我們改善翻譯效果:薇曉朵技術論壇。