[wp-trac] [WordPress Trac] #14310: Make template hierarchy filterable

WordPress Trac noreply at wordpress.org
Tue Sep 17 15:11:40 UTC 2013


#14310: Make template hierarchy filterable
------------------------------------+-----------------------------
 Reporter:  scribu                  |       Owner:
     Type:  enhancement             |      Status:  reopened
 Priority:  normal                  |   Milestone:  Future Release
Component:  Themes                  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------------

Comment (by simonwheatley):

 Here's a scenario we could use this in for Babble (multilingual plugin):

 We'd like to allow theme developers to provide language specific versions
 of templates, e.g. `single-product-fr-fr.php`. We can use the
 `"{$type}_template"` filter for this, but we need to replicate a lot of
 code when hooking it to properly handle template hierarchy.

 What do we need in order to get some discussion going again, and hopefully
 get the ` "{$type}_template_hierarchy"` filter into 3.7?

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


More information about the wp-trac mailing list