Need ability to filter page templates
|Reported by:||mrwweb||Owned by:|
The primary use case of a new filter would be to allow a child theme to remove or rename a parent theme page template in the Dashboard. It's possible that part of the get_page_templates() function might have to be tweaked to allow for the scenario where one or more pages is using a template that no longer "exists," but I'm not sure.
Hopefully this is as simple as adding apply_filters( 'page_templates', $page_templates ); somewhere in class-wp-theme.php.
Change History (13)
comment:10 c3mdigital — 4 months ago
- Keywords needs-testing close removed
- Resolution set to duplicate
- Status changed from new to closed