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

WordPress Trac noreply at wordpress.org
Sun Mar 9 20:24:50 UTC 2014


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

Comment (by casben79):

 Im not at all suggesting messing with the template hierarchy, but being
 able to programmatically control the location of small subsets of the
 code, `locate_template()` is also used in `get_template_part()` which
 really has nothing to do with the overall template hierarchy.

 The overall hierarchy is already very easy to butcher at the moment using
 the `template_include` filter, which is at the moment the only place my
 plugin can effect the changes people make to the templates.

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


More information about the wp-trac mailing list