I've been trying not nut out how to add new page templates to WordPress via a plugin (instead of hard coding template files).
Any idea if this is possible? I've been looking into get_page_templates() but I can't figure out a way to filter it.
It's simple enough to check for the existence of a page template via is is_page_template() but creating one seems more complex.
Wondering why I need to know? ... I want to do this, so that I can give the end-user the ability to change the label of the page template via the admin panel. At the moment this is controlled via the file itself, so if I can create the templates via a plugin (actually via functions.php - but it's easier to explain this way), then it should be possible to bypass the file and create it dynamically.


LinkBack URL
About LinkBacks
Reply With Quote
