Hello,
This is possible only with the pro version of the plugin which has a basic Search feature, it doesn’t allow you to search by extension per se but when you enter **webp** it will filter out and show all files that have webp in their names (including the extension).
Currently in the pro version, you can only filter by types, e.g. Images, Archives, Documents, etc. but not by file extensions.
Thanks,
Krasen
Will that search also do “not .webp or .bk” instead? I mean: I wish to exclude all files with “.jpg.webp” and “.bk.jpg” in their name, not filter out the rest…
Sorry but currently this isn’t possible with either the free or the pro version. I have on my todo list to improve the search feature but right not it has very basic searching capabilities.
OK, understood. Is there maybe a filter hook that I could use?
In the free version no. But in the pro, all the allowed file types are stored in an array. As I said under Options you can switch between groups but not by file extensions.
$allowed_mime_types = array(
'image' => array( 'jpg', 'jpeg', 'jpe', 'gif', 'png', 'bmp', 'tiff', 'tif', 'webp', 'ico', 'heic' ),
'audio' => ...,
'video' => ...,
'document' => ...,
'spreadsheet' => ...,
'archive' => ...,
)
You can easily modify the plugin if you some have basic coding skills.
That’s too bad… Modifying the mime type array won’t work (I guess) for excluding the non-optimized backup files with extension .bk.jpg because they still have the JPEG mime type.
Anyway, thanks for your response and explanations 🙂
I usually don’t do that but if you can’t find another plugin that will help you, I’d be happy to install and see if I can modify the pro plugin if you get me a staging site with temp access. You can reach me using the site contact form at any time.
Krasen