wphierarchy.com is a visualization of the WordPress theme template hierarchy.
Official documentation is located at: https://developer.wordpress.org/themes/basics/template-hierarchy.
gulp
(npm install -g gulp
)git clone https://github.com/ramiabraham/wphierarchy.git
npm install
WPHierarchy.com has a rest api
available at https://wphierarchy.com/api.
The api contains the following data:
An array of objects in hierarchy_items
, each structured as an array itself:
```
array(
"object_id" => "c1r1",
"semantic_id" => "archive_page",
"name" => "Archive Page",
"description" => "",
"link" => "https://codex.wordpress.org/Creating_an_Archive_Index#The_Archives_Page",
"classification" => "archive",
"tip" => "",
"since" => ""
)
```
So if you wish to get the names of all items, your request would be for:
`data.hierarchy_items.name`
hierarchy_items.classification
variable.tips
). An example of the small, desired strings for tips can be seen in the 4.5 embeds addition.svg
element and <foreignobject>
nodes.Code: MIT License
WordPress template hierarchy design: Copyright 2016, Michelle Schulp
Wapuu character, Dashicons: GPL, via the Japanese WordPress Community
The WordPress logo is a trademark of the WordPress Foundation. More info: http://wordpressfoundation.org/trademark-policy.