Skip to:

Opened 8 months ago

#8185 new enhancement

Inadequate details availabe on bp_attachments_pre_get_attachment

Reported by: sbrajesh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0.0
Component: Core Keywords: has-patch
Cc: sbrajesh


The filter


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)

8185.diff (665 bytes) - added by sbrajesh 8 months ago.
Add $data as the 3rd parameter.

Download all attachments as: .zip

Change History (1)

8 months ago

Add $data as the 3rd parameter.

Note: See TracTickets for help on using tickets.