WordPress.org

Ready to get started?Download WordPress

Forums

Remove a add_image_size() (2 posts)

  1. Danny159
    Member
    Posted 1 year ago #

    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

  2. catacaustic
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic