ralfhortt / wp-template-loader
A helper class to load template files from another location
Installs: 1 982
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
This package is auto-updated.
Last update: 2024-11-04 23:06:53 UTC
README
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();