WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 10 months 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:

Description

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)

comment:1 @Mamaduka3 years ago

  • Cc georgemamadashvili@… added

comment:2 @sabreuse3 years ago

  • Cc sabreuse@… added

comment:3 @nacin18 months ago

  • Component changed from General to Themes

comment:4 @obenland10 months 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.