Skip to content

A helper class to load template files from another location

Notifications You must be signed in to change notification settings

Horttcore/wp-template-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Template loader StyleCI

A helper class to load template files from another location

Installation

$ composer require ralfhortt/wp-template-loader

Usage

<?php
use RalfHortt\TemplateLoader\TemplateLocator;

// Will load WordPress front page from `views/front-page.php`
(new TemplateLocator('views'))->register();

More Information about the WordPress hierarchy

https://wphierarchy.com/

About

A helper class to load template files from another location

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages