Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

theMikeD on "will wp_delete_attachment delete all images sizes too?"

$
0
0

The codex doesn't indicate this so I'm wondering if anyone else knows:

There are two basic types of images: the original uploaded image, and the image(s) derived from it for things like thumbnails etc. The derived images are easily identified because they have the filename format

<original>-<width in pixels>x<height in pixels>.ext

When this function is called with the ID of an originally-uploaded image, will all derived images also be deleted? Or will then be left there as clutter?


Viewing all articles
Browse latest Browse all 8245

Trending Articles