Opened 15 years ago
Closed 11 years ago
#2282 closed enhancement (fixed)
bp_has_* defaults filters
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Activity | Keywords: | |
Cc: |
Description
All of the bp_has_* functions currently have an output filter, but I think there should also be filters for the $defaults array. Filtering the output of the function in any meaningful way requires an extra query to the relevant template Class that could be avoided by filtering defaults instead.
I've attached an example diff of what that would look like for bp_has_activities(). (I haven't submitted a diff before, so hopefully it works!)
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is fixed as of r8142.
View the corresponding codex article for more info:
http://codex.buddypress.org/plugindev/using-bp_parse_args-to-filter-buddypress-template-loops/