Add filter to page_template_dropdown()
|Reported by:||meloniq||Owned by:|
|Component:||Posts, Post Types||Keywords:||has-patch 3.9-early|
page_template_dropdown() is used in 'Page Attributes' metabox to list available page templates. The filter hook will give ability to adjust what's displayed in this box.
We use many custom templates to perform some specific tasks like building frontend dashboards, submit/edit forms, login pages, etc.
As far it works well, but the 'Page Attributes' metabox fulfill with page templates that in most of cases are not intended for any other use, and some administrators get confused seeing full list of available templates while creating a new page.
Change History (12)
- Milestone changed from Awaiting Review to 3.8
- Keywords 3.9-early added
- Milestone changed from 3.8 to Future Release