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

WordPress Trac noreply at wordpress.org
Wed Jul 19 14:48:49 UTC 2017


#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 kylejennings83):

 I guess I have just introduced a duplicate ticket #41362, but I would like
 to drive attention to it to see whether or not my method get merged in
 here.

 I followed the pattern used by @scribu in the accepted ticket #14310 to
 add the ability to move both all templates, and templates by type using
 the {{{$type}}} variable that's passed into {{{get_query_template()}}}.

 FWIW moving the templates, especially based on type is hugely beneficial
 if you're building large application, I added a lot of examples of how I
 like to organize my themes, ticket:41362#comment:3

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


More information about the wp-trac mailing list