#2277 closed enhancement (fixed)
Add filter to the located template in bbp_locate_template
Reported by: | MZAWeb | Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | low |
Severity: | minor | Version: | 2.1 |
Component: | API - Actions/Filters | Keywords: | |
Cc: | wordpress@… |
Description
While doing https://github.com/MZAWeb/debug-bar-bbpress I saw there's no easy way to get the full path to the located templates for bbPress.
Attachments (1)
Change History (8)
#3
@
11 years ago
- Milestone changed from Awaiting Review to Future Release
Ideally, we don't want to have a complete template short-circuit here. People will use it as a brute-force way to overload the template instead of using other, more efficient API's.
Moving to future release, so we can think about other approaches.
#4
@
11 years ago
I'd argue that there are tons of filters that can be misused resulting in broken or weird behavior.
But we can change that filter to a do_action if you prefer, just to inform plugins about the $located selection.
#5
@
11 years ago
- Keywords has-patch 2nd-opinion removed
- Milestone changed from Future Release to 2.3
do_action() seems fine.
The reason I don't want a filter here, is to direct developers towards using the template stack API instead.
Patch added