Page Templates within Plugins
|Reported by:||sterlo||Owned by:|
It would be awesome if we could create a Page Template from within a the confines of a Plugin.
Currently, we have to create Page Templates from within a Theme.
If we could add an action or if WordPress could look inside a plugin's directory, we could have Custom Page Templates within a plugin.
If The User has a Theme activated that has a persistent sidebar and when My Awesome Plugin requires a page to not have a sidebar (it needs to use the full with of a site - or whatever - let your imagination run wild), then there is currently little recourse - other than going into the theme and adding a Page Template.
This can leave a Plugin "Theme Dependent".
- Add a hook for Page Templates
- Extend WordPress' search for Page Template to include plugin directories