• mbaierl

    (@mbaierl)


    Hey,

    your plugin is amazing, but it lacks filters for developers to hook in. For example on one website I do not want to compress WebP images, but JPG/PNGs…

    Without a filter in that function it’s impossible to achieve that:

    public function file_type_allowed() {
    return in_array( $this->get_mime_type(), array( 'image/jpeg', 'image/png', 'image/webp') );
    }

    Would be great (and a quick win) if there would be a filter, as common in WordPress Plugins.

    Thanks,

    Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TinyPNG

    (@tinypng)

    Hi Michael,

    Thank you for your suggestion.

    I will add this on our list of possible improvements for the plugin. At the moment, I can’t tell you if or when this will be implemented.

    Have a great day!

    Thread Starter mbaierl

    (@mbaierl)

    So if there is no way right now to limit which file types the plugin optimized, I’ll have to choose another solution. Can’t wait for “if or when”.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add filters for developers’ is closed to new replies.