A class to copy into your WordPress plugin, to allow loading template parts with fallback through the child theme > parent theme > plugin.
GPL-2.0 License
Published by GaryJones over 7 years ago
unset_template_data()
can remove all custom references.set_template_data()
and unset_template_data()
to become fluent methods.set_template_data()
argument.Published by GaryJones over 8 years ago
composer.json
.Published by GaryJones over 10 years ago
Small bug fixes and improvements.
Thanks to @bradyvercher, @grappler and @wpsmith.
Published by GaryJones almost 11 years ago
Initial release. Exists to be used verbatim within other plugins as a template loader, allowing template parts to be searched for in child theme, parent theme and finally the plugin itself (though this list is individually filterable per plugin).