[wp-trac] [WordPress Trac] #31475: Add ability to change the folder location for templates

WordPress Trac noreply at wordpress.org
Wed Sep 16 00:07:59 UTC 2015


#31475: Add ability to change the folder location for templates
-------------------------+------------------------------
 Reporter:  rugbert      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  4.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by rugbert):

 Replying to [comment:3 lkraav]:
 > I need to switch template directories mid-request to a plugin, once I've
 identified that the request handling belongs to the plugin. In this case,
 action "wp" is safe, which is pretty late. Since it's based on constants,
 it doesn't look like @rugbert's patch would allow me to do this.

 Hey @ikraav, sorry for the late reply. Can you give ma little bit more
 information about what you're doing?

 I guess you have a hook that listens for requests and determines which
 template needs to be loaded and then passed it off to a plugin if
 applicable? Whats the plugin called?

 I've been working on a plugin version of this ticket to workout bugs and
 add features and would love to solve this problem as well.

 Thanks!

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


More information about the wp-trac mailing list