Support » Fixing WordPress » Remove a add_image_size()

  • Hey guys,

    I added a add_image_size() to my theme and it has created loads of images with that image size in my wp-content/uploads/…… folders….

    This was the code:
    add_image_size(‘watermarked’, 1000, 700, true);

    However I now don’t want to use this size of image anymore…. my question is I can remove it from my functions.php file however…. how can I get WordPress to loop through and remove all the image files that are associated with that image size but leave all the others?

    Thanks,
    Dan

Viewing 1 replies (of 1 total)
  • catacaustic

    (@catacaustic)

    very awesome

    I don’t think that there’s a standard WordPress function to remove those images, but I believe that you’d be able to do it if you use one of the thumbnail regeneration plugins that are available.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove a add_image_size()’ is closed to new replies.