[wp-trac] [WordPress Trac] #42855: Add ability to filter header, sidebar, searchform, footer and template_part file paths

WordPress Trac noreply at wordpress.org
Wed Feb 28 00:12:31 UTC 2018


#42855: Add ability to filter header, sidebar, searchform, footer and template_part
file paths
------------------------------+------------------------------
 Reporter:  atanasangelovdev  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Themes            |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  template
------------------------------+------------------------------

Comment (by MikeSchinkel):

 Replying to [comment:8 joyously]:

 ''CORRECTION:'''  `get_template_part()` does not have a general purpose
 "pre" action hook.  It's pre hook requires a plugin to have advanced
 knowledge of the slug, for which an effectively infinite number of
 permutation could be used.

 So we would also need a new general purpose "pre" action hook for
 `get_template_part()`.

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


More information about the wp-trac mailing list