[wp-trac] [WordPress Trac] #11242: Add "template_include" action to be run just before templates are included
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 24 20:34:00 UTC 2009
#11242: Add "template_include" action to be run just before templates are included
------------------------------------+---------------------------------------
Reporter: holizz | Owner: westi
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+---------------------------------------
Comment(by harrym):
Replying to [comment:11 Denis-de-Bernardy]:
> Replying to [comment:7 harrym]:
> > @Denis:
> >
> > I'm afraid that doesn't work either. template_redirect isn't called
when templates are included using load_template() in wp-include/theme.php.
> >
> > We really have thought about this!
>
> the again, those (when used) have stuff like:
>
> {{{
> do_action( 'get_header', $name );
> }}}
That's true, but none of these hooks allow us to *override* the template
handling. Once get_header's been called, we can't stop the header from
being included, or modify the template's path.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11242#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list