Jump to content

WordPress - providing templates from plugins


titan21

Recommended Posts

I don't even know if this is possible but is there a hook or a filter to provide templates that a page is based on from a plugin rather than a theme? I saw template_include which seems to determine what template should be used if a particular category, post_ID etc is used so I don't think this would work. And I also saw template_redirect - again this seems to react to the type of page that is being called. Essentially, on the Page Admin screen in WP, I would like to provide a template that a user can use by selecting it from the template dropdown box. I can include templates if there are available in a theme but not from a plugin. Any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.