Opened 10 years ago
Closed 10 years ago
#6024 closed enhancement (no action required)
Allow plugins to filter selected template for bp-legacy AJAX requests
Reported by: | dcavins | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
While trying to simplify the way a plugin worked, I needed to be able to filter the template used by bp-legacy for AJAX responses. This patch adds filtering for all the things.
Attachments (1)
Change History (7)
#1
@
10 years ago
What do these filters do that can't be done with the more generic 'bp_get_template_part'?
#3
@
10 years ago
I made this change while trying to simplify Invite Anyone (trying to use filters and actions to overload the default invites template in this post-theme-compat world). And there was a reason that filtering 'bp_get_template_part' wasn't up to scratch... let me look back at my notes and see if I can remember what the problem was.
Sorry for not describing the problem I was intending to fix as part of the original ticket description.
Allow plugins to filter bp-legacy AJAX template selection.