Make WordPress Core

Opened 9 years ago

Closed 7 years ago

#21168 closed enhancement (invalid)

Add ability to remove a parent theme's page templates

Reported by: billerickson Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: Cc:


When building a website using a child theme, I'll often want to remove page templates that the parent theme provides but aren't useful/relevant to the specific site I'm building.

You can create a page template with the same name to override the parent theme's, but you can't simply remove it.

This could be a use case of #13265, or we could add function that leverages #13265

Change History (4)

#1 @Mamaduka
9 years ago

  • Cc georgemamadashvili@… added

#2 @sabreuse
9 years ago

  • Cc sabreuse@… added

#3 @nacin
7 years ago

  • Component changed from General to Themes

#4 @obenland
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

This was addressed in r27297 and r27470, with the theme_page_templates filter.

Note: See TracTickets for help on using tickets.