Add filters for developers
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add filters for developers’ is closed to new replies.