Marcus Downing
Member
Posted 1 year 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.
http://wordpress.org/extend/plugins/attachments/
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
Marcus Downing
Member
Posted 1 year ago #
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.
Marcus Downing
Member
Posted 1 year ago #
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. :)