[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
Wed Nov 25 11:02:46 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:  2.9           
 Severity:  normal                  |   Resolution:                
 Keywords:  has-patch dev-feedback  |  
------------------------------------+---------------------------------------

Comment(by scribu):

 Replying to [comment:13 Denis-de-Bernardy]:
 > {{{
 > function my_header($name) {
 >   // do stuff
 >   die;
 > }
 > add_action('get_header', 'my_header');
 > }}}

 I was never confortable with this approach.

 Maybe it's time to finally add a dedicated filter.

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


More information about the wp-trac mailing list