[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 08:25:49 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:
-------------------------+------------------------

Comment (by prionkor):

 Thanks good read!

 >simply adding a new page template via that filter wouldn't actually allow
 the template to be used

 I am developing a theme with MVC structure where there is a template
 factory which take care of the all templating.

 The reason I was trying to use this filter want to have user select a
 (fake) page template. And If selected depending on the template name the
 template class can choose the right view class for it.

 I will add a reply on that ticket.

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


More information about the wp-trac mailing list