[wp-trac] [WordPress Trac] #13239: Filter locate_template template_names variable

WordPress Trac noreply at wordpress.org
Fri Oct 23 03:26:17 UTC 2015


#13239: Filter locate_template template_names variable
-------------------------+-----------------------------
 Reporter:  chrisjean    |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Future Release
Component:  Themes       |     Version:  3.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------

Comment (by nacin):

 > There's potential for a developer plugin here. Imagine a plugin that
 shows a list, at the top of any given page, of all the templates being
 loaded for the current page. It would be a perfect complement to this
 patch.

 This can already be done with `get_included_files()` in PHP, and it's
 already done in a WordPress-aware way in the excellent
 [https://wordpress.org/plugins/query-monitor/ Query Monitor] plugin by
 @johnbillion.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/13239#comment:95>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list