WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
Filters and actions (5 posts)

  1. 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/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. 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.

  4. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. 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. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic