[wp-trac] [WordPress Trac] #37302: get_header(), get_sidebar() and get_footer() doesn't use template_include()

WordPress Trac noreply at wordpress.org
Thu Jul 7 10:00:08 UTC 2016


#37302: get_header(), get_sidebar() and get_footer() doesn't use template_include()
----------------------------+-----------------------------
 Reporter:  schoenwaldnils  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  4.5.3
 Severity:  normal          |   Keywords:
  Focuses:  template        |
----------------------------+-----------------------------
 Hi,

 I'm building a plugin for using haml in themes, where I have to get every
 template before it is included.

 I tried to add an action using `add_action( 'template_include',
 'my_function');`
 This hook did pretty well, except for the header, sidebar, and footer.

 I also tried to use `get_included_files()` like @nacin mentioned here:
 ticket:13239#comment:95
 The problem there is, that I only get the files after they are included.

 Is it possible that `get_header()`, `get_sidebar()` and `get_footer()` can
 use `template_include()`?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37302>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list