Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#27334 closed enhancement (fixed)

Allow removing and renaming of page templates

Reported by: nacin Owned by:
Milestone: 3.9 Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: template Cc:


This is split from #13265, which focuses on general filtering. In 3.9, we've added a filter that allows for just removing and renaming page templates. This ticket is being opened (and closed) to track that.

Change History (1)

#1 @nacin
7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

In [27297]:

Add a filter to remove or rename page templates for a theme. This does not yet handle adding page templates. see #13265.

In [27470]:

Rename the new page_templates filter to theme_page_templates, and pass it a post object for proper context.
see #13265.

The rest will be handled in #13265.

Note: See TracTickets for help on using tickets.