Include a new `locate_template_override` filter to let plugins duck-punch how templates are included.
|Reported by:||georgestephanis||Owned by:|
Basically, the win from this patch is that plugins will be able to swap out how the results of get_template_part() are fetched. If a plugin wants to cache the results of specific template parts, for example, loop.php or content-reviews.php -- it can cache those, without forcibly caching content-post.php or the like.
This should enable much more robust ways of targeted caching.
Change History (9)
comment:3 georgestephanis — 4 months ago
comment:7 georgestephanis — 4 months ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed