wenprise / template-render
Allow WordPress plugin user to overwrite plugin templates in themes
Installs: 191
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/wenprise/template-render
Requires
- php: >=5.6
This package is auto-updated.
Last update: 2025-09-29 14:08:43 UTC
README
Allow WordPress plugin user to overwrite plugin templates in themes
args
new TemplateHelper($theme_path, $plugin_path)
- $theme_path: [string] The theme directory name containing template files used to override plugin templates
- $plugin_path: [string] The absolute directory containing template in plugins.
Useage
$loader = new TemplateHelper('wenprise-term-list-block', WENPRISE_TERM_LIST_BLOCK_PATH . 'templates'); $loader->get_template('list.php', compact(['taxonomy', 'terms']));