Support » Plugin: Attachments » [Plugin: Attachments] Filters and actions
4 years, 9 months ago
It would be extremely helpful if the Attachments plugin was scattered with filters and actions that help other parts of a site interact with it.
For example, I’d like to attach a filter to the attachments_get_attachments method that would return the attachments for a parent post if the current post has none.
Hi Marcus, adding filters and actions has been on the roadmap for some time. They’ll likely be added to the Pro version first unless someone else would like to contribute the code on GitHub https://github.com/jchristopher/attachments
Thanks, I will 🙂
I’ve submitted a pull request from marcusatbang/attachments. You should of course test before trusting me.
Awesome, that’s great. I’m going to review ASAP but it likely will take a couple of weeks as I’m quite overbooked until then. Thank you again.
Okay, in your own time. As long as the next version you release doesn’t remove them (and overwrite my local copy when I update), which would probably confuse and annoy me. 🙂