$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>plugin development - Looking for WordPress System Diagrams|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugin development - Looking for WordPress System Diagrams

matteradmin11PV0评论

I am looking for WordPress chart/diagram system design.

I found only the template hierarchy diagram, but it's only part of the system.

source: .png

I am looking for WordPress chart/diagram system design.

I found only the template hierarchy diagram, but it's only part of the system.

source: http://upload.wikimedia/wikipedia/commons/3/3d/Wordpress_Template_Hierarchy.png

Share Improve this question edited Jul 10, 2012 at 8:56 brasofilo 22.2k8 gold badges70 silver badges270 bronze badges asked Jul 10, 2012 at 7:31 BenBen 2052 silver badges6 bronze badges 3
  • Simply put WP is too large to be charted to the small details. Try to focus your question on which aspects precisely you are interested in. – Rarst Commented Jul 10, 2012 at 23:26
  • in mvc model - chart: main routing, model, controller, view. – Ben Commented Jul 19, 2012 at 8:23
  • @Yosef WordPress isn't really built around MVC – anu Commented Jul 19, 2012 at 10:27
Add a comment  | 

2 Answers 2

Reset to default 14

More than an Answer, this is a research and a compilation. Database Description already in Damien answer.



A Google search reveals this in WordPress forums:

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.



Note: the Template Hierarchy of WikiMedia in the OP Question differs from the one in the Codex

click to enlarge

But, Chip Bennet has an extended one :)



I thought this Question was a duplicate of the following (but mods said it's not):
Where can I find a real architecture document on Wordpress?

In it, Mike Schinkel states:

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

One answer points to an old article with this diagram:

And the other to this Wordpress 3.0 Program Flow (PDF)



Rarst answer to this Question ( When should you use WP_Query vs query_posts() vs get_posts()? ) has a nice overview of WP_Query:



Another from Rarst on core load:



And finally, a totally unrelated Question about performance ( Refactoring Wordpress to improve memory performance ), but with very nice graphs :)

If you are looking for the database schema, there is a version on the Codex:

click to enlarge

The image you referenced in your post is the template hierarchy most commonly used by theme developers.

Post a comment

comment list (0)

  1. No comments so far