WordPress.org

Ready to get started?Download WordPress

Forums

WP RSS Images
Filterable/Hookable way of modifying behavior (2 posts)

  1. Eddie Moya
    Member
    Posted 2 years ago #

    It would be useful if this plugin had a filter or hook in the 'wp_rss_img_url()' function which could allow developers to add more ways in which an image might appear in relation to a post. There are tons of non-standard ways this happens, such as through hero image plugins, simplefields plugin, or other meta data.

    For our use at Sears I've had to make a small edit to the plugin to make it check for meta data generated by using SimpleFields. No big deal but I hate to have to branch other people plugins.

    Btw, good job with this plugin. As simple as you would think this is, none of the other plugins supposedly doing this seem to work quite right.

    http://wordpress.org/extend/plugins/wp-rss-images/

  2. Simon Wheatley
    Code for the People
    Posted 2 years ago #

    I have the same issue, Eddie, so I've created a proposal to add two filters to the plugin and I hope that Alain will consider incorporating these (or similar) into the plugin. :)

    The proposed wp_rss_image_size filter allows devs to change the image size used for the featured image (currently hard-coded as medium).

    The proposed wp_rss_image_alternative filter allows devs to completely override the image finding method built into the plugin (which would be useful for you, I think, Eddie).

    The patch/diff is here: http://pastebin.com/nvP8XLZs
    If you want the complete altered file, it's here: http://pastebin.com/QgdiSCbL
    Here's some examples of using the proposed filters: http://pastebin.com/jy1QRfXb

    Alain, I hope this is something you can consider putting into your plugin. Let me know if there's anything I can do to help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic