Opened 5 years ago
Closed 4 years ago
#8185 closed enhancement (fixed)
Inadequate details availabe on bp_attachments_pre_get_attachment
Reported by: | sbrajesh | Owned by: | imath |
---|---|---|---|
Milestone: | 8.0.0 | Priority: | normal |
Severity: | normal | Version: | 5.0.0 |
Component: | Core | Keywords: | has-patch |
Cc: | sbrajesh |
Description
The filter
bp_attachments_pre_get_attachment
Does not provide anyway to know which piece of data(is it url or path) is being fetched.
That renders the hook useless for most use case.
We should pass the $data too with the hook. Here is a patch attached with the same.
Please let me know if there is a better way to do it.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Add $data as the 3rd parameter.