[wp-trac] [WordPress Trac] #51658: Themes: Allow template loading functions to filter templates to search for

WordPress Trac noreply at wordpress.org
Wed Oct 28 18:26:03 UTC 2020


#51658: Themes: Allow template loading functions to filter templates to search for
-------------------------+------------------------------
 Reporter:  amibe        |       Owner:  (none)
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  template
-------------------------+------------------------------

Comment (by amibe):

 Thank you. Admittedly I'm more interested in being able to prevent the
 header, footer and sidebar templates from being included in certain
 situations.

 The only way I could think of doing this is a filter for {{{$templates}}}
 that returns {{{false}}}.

 The PR I've submitted is unrelated to changing the path/location of
 template files.

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


More information about the wp-trac mailing list