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

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 10 19:02:18 UTC 2011


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

Comment (by wpmuguru):

 I propose that the filter be moved to after the existing template search
 is complete.

 The use case is loading templates contained within plugins. If it's moved
 to after then a plugin can contain logic to load either a template in the
 theme or one within the plugin. For example, a plugin can have a default
 template but the site owner can create a custom version of it and store
 the custom version in their theme.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13239#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list