Filter template hierarchy for embed templates (#2145)
This commit is contained in:
@@ -38,7 +38,7 @@ add_filter('excerpt_more', function () {
|
|||||||
*/
|
*/
|
||||||
collect([
|
collect([
|
||||||
'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home',
|
'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home',
|
||||||
'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment'
|
'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment', 'embed'
|
||||||
])->map(function ($type) {
|
])->map(function ($type) {
|
||||||
add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
|
add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user