Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Preventing Previously Defined Image Sizes from Uploading

Discussion in 'Misc WordPress Requests' started by charliep127, Oct 31, 2017.

  1. charliep127

    Guest

    Reply To: Preventing Previously Defined Image Sizes from Uploading, by charliep127

    These are not the thumbnail/medium/large sizes, these are extra images that I defined. The names of then are 350auto and 350245. It produces these images for every theme (I run multiple themes on the network), and it even produces them when I download a new theme and upload pictures to it. In other words, the issue isn’t theme-specific.

    This is what I’ve been posting in my functions.php of each theme.

    add_action(‘init’, ‘remove_350auto_images’);
    function remove_350auto_images() {
    remove_image_size(‘350auto’);
    }
    add_action(‘init’, ‘remove_350245_images’);
    function remove_350245_images() {
    remove_image_size(‘350245’);
    }

    Should I also post it elsewhere, to make sure these images aren’t generated in the first place?

    Reply To: Preventing Previously Defined Image Sizes from Uploading
     
    #1

Share This Page

Web Hosting