[wp-trac] [WordPress Trac] #20390: Add 'after_template_include' action hook at the end of 'template_loader.php'

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 7 12:12:50 UTC 2012


#20390: Add 'after_template_include' action hook at the end of
'template_loader.php'
-------------------------+-----------------------------
 Reporter:  egorpromo    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.3.1
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 In some cases theme authors need to hook on the most end of wordpress
 execution. The excellent place for it is the end of  'template_loader.php'
 file.

 I encounter problem when I try delete my $_COOKIE (needed in the HTML
 output) at the end of my templates files because I need my some session
 variables only once. I think it is better to use hook that I have proposed
 above.

 {{{
 do_action('after_template_include');
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20390>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list