Hierarchy final class
Minn\Theme\Hierarchy · public/minn/src/Minn/Theme/Hierarchy.php · 148 lines
The classic template hierarchy: the candidate file names each template type tries, most specific first, as the reference resolves them. The facade's get_{type}_template() functions feed these to get_query_template(), which locates the first candidate the theme (child, then parent) ships.
Public
| static | frontPage(): array# | The front page templates. @return list<string> | |||
| static | home(): array# | The home templates. @return list<string> | |||
| static | privacyPolicy(): array# | The privacy policy templates. @return list<string> | |||
| static | page(string $custom, string $slug, int $id): array# | The page templates, custom first. @return list<string> | |||
| static | single(string $type, string $slug, string $custom): array# | The single templates, custom first. @return list<string> | |||
| static | attachment(string $mimeType): array# | The attachment templates by mime type: type-subtype, subtype, type (probe template-getters). @return list<string> | |||
| static | term(string $taxonomy, string $slug, int $id): array# | The term archive templates. @return list<string> | |||
| static | author(string $nicename, int $id): array# | The author archive templates. @return list<string> | |||
| static | archive(array $postTypes): array# | The post type archive templates.
|
Nothing matches.