Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Workshopshed

    (@workshopshed)

    I’m thinking that an elegant way to implement this would be to add filters for each of the functions.

    Then we could add in out own filtering such as in my case excluding files when the source is amazon affiliates.

    Plugin Author Justin Tadlock

    (@greenshady)

    If you’ll post what these image URLs look like, I’ll look into it for a future version.

    Also, it’s probably best to open an issue on GitHub so that I’ll remember:
    https://github.com/justintadlock/get-the-image/issues

    Thread Starter Workshopshed

    (@workshopshed)

    I can manage this via the filter in the plugin as follows:

    add_filter('get_the_image','notrackingthumbs');
    
    function notrackingthumbs($html) {
        //Suppress any images that might have been picked up by Get The Image
        if (strrpos($html,'/e/ir?t=') )
            return '';
        else
            return $html;
        }

    The /e/ir?t= is a unique string that appears in the particular tracking images I am trying to suppress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestion: Don't use tracking images’ is closed to new replies.