[wp-trac] [WordPress Trac] #43597: Modify template-loader engine
WordPress Trac
noreply at wordpress.org
Mon Mar 26 13:20:42 UTC 2018
#43597: Modify template-loader engine
-------------------------+------------------------------
Reporter: chespir | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: | Focuses: template
-------------------------+------------------------------
Comment (by soulseekah):
@chespir Thanks for the explanation!
It seems to me that you should be using `WP_USE_THEMES` in your a.php
script and create two hooks on in the `template_redirect` action, so you
can set you WP_Query parameters, and the other in `template_include`
filter so you can see what core is about to load and override if needed.
Would this not solve your issue?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43597#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list