[ad_1]
Hello.
I use a plugin which creates variations from uploaded images, these images are not being deleted when using this plugin.
I was looking for hooks to use, but I couldn’t find one.
For now I added a hook to \EnableMediaReplace\Replacer::removeCurrent()
that allows me to do additional cleaning.
I also created a pull request:
https://github.com/short-pixel-optimizer/enable-media-replace/pull/86