[wp-trac] [WordPress Trac] #33309: Add support to add page template via theme_page_templates filter

WordPress Trac noreply at wordpress.org
Sat Aug 8 07:38:14 UTC 2015


#33309: Add support to add page template via theme_page_templates filter
-------------------------+------------------------
 Reporter:  prionkor     |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:
 Severity:  normal       |  Resolution:  duplicate
 Keywords:               |     Focuses:
-------------------------+------------------------
Changes (by dd32):

 * status:  new => closed
 * version:  4.2.4 =>
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 The filter was designed to allow the renaming & removal of templates from
 being listed, simply adding a new page template via that filter wouldn't
 actually allow the template to be used (even if the function was changed
 to allow it).

 See #13265 for a long discussion over being able to add templates via a
 filter.

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


More information about the wp-trac mailing list