[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 00:45:25 UTC 2009


#11242: Add "template_include" action to be run just before templates are included
-----------------------------+----------------------------------------------
 Reporter:  holizz           |        Owner:  westi     
     Type:  enhancement      |       Status:  closed    
 Priority:  normal           |    Milestone:            
Component:  Plugins          |      Version:            
 Severity:  normal           |   Resolution:  worksforme
 Keywords:  has-patch close  |  
-----------------------------+----------------------------------------------
Changes (by scribu):

  * keywords:  has_patch close => has-patch close
  * status:  new => closed
  * resolution:  => worksforme
  * milestone:  Future Release =>


Comment:

 I also don't see how filtering the full path is better than calling the
 'template_redirect' hook.

 You have a filter for each get_*_template() function. You should use those
 instead.

 Also, take a look at the Carrington Framework and see how they go about
 it.

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


More information about the wp-trac mailing list