Delete image variations |


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:


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer