How disable resize generate thumbs?

HomeSupportImage StoreHow disable resize generate thumbs?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #274440
    Jhonathan
    Participant

    How disable resize generate thumbs?
    I want to speed up the upload process disabling the generation of thumbnails as I do that?

    #280353
    Xpark Media
    Keymaster

    Add the following code to a plugin or theme.

    function my_custom_function_name( $data ){
      remove_filter( 'ims_generate_image_metadata', $metadata, $attachment_id, $path );
      return $data;
    }
    add_filter( 'wp_update_attachment_metadata',  'my_custom_function_name', 100 );
    #280861
    Jhonathan
    Participant

    did not work, still creates the thumbnails in _resized folder.

    #283981
    Xpark Media
    Keymaster

    Here is another example, make sure you rename the function

    function my_custom_function_name( ){
      global $imstore,
      remove_filter( 'wp_update_attachment_metadata', array($imstore, 'generate_image_metadata'));
      remove_filter( 'wp_generate_attachment_metadata', array($imstore, 'generate_image_metadata'));
    }
    
    add_action( 'ims_admin_init',  'my_custom_function_name', 100 );
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.