[wp-trac] [WordPress Trac] #19296: add/apend templates 'transparently' via plugin to currently active theme or child theme.
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 20 06:51:13 UTC 2011
#19296: add/apend templates 'transparently' via plugin to currently active theme or
child theme.
-------------------------+------------------------------
Reporter: anointed | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: close |
-------------------------+------------------------------
Changes (by johnbillion):
* keywords: => close
Comment:
All you need is the `template_include` filter (I've just realised this is
a poorly documented filter). Then your custom template would look
something like:
{{{
<?php
// output the user entered header code
// output all the custom stuff that the plugin is providing
// output the user ented footer code
?>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19296#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list