• Hello,

    I need to completely avoid generating this thumbnail size: ‘user_thumb’ – 45×45
    I think this function will do the job:

    Am I right? Will this work?

    function shapeSpace_disable_user_thumbs($sizes) {
    unset($sizes[‘user_thumb’]); // disable 45×45 size
    return $sizes;
    }
    add_action(‘intermediate_image_sizes_advanced’, ‘shapeSpace_disable_user_thumbs’);

    Regards, Walter.

Viewing 1 replies (of 1 total)
  • Thread Starter chefnelone

    (@chefnelone)

    Update:
    1- This image size is set by the Theme I am using.
    2- Can set the priority of this code to overwrite any other code in the theme, core and plugins?

Viewing 1 replies (of 1 total)
  • The topic ‘Prevent generating image thumbs size’ is closed to new replies.