[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:36:25 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 Denis-de-Bernardy):

 Replying to [comment:12 harrym]:
 > 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.

 not so.

 {{{
 function my_header($name) {
   // do stuff
   die;
 }
 add_action('get_header', 'my_header');
 }}}

 itching to re-close, personally.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11242#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list