0

For image upload in my plugin i am using media_handle_sideload function. Is it possible to disable image resizing on this function?

0

Have a look at media_handle_sideload in source. The function within there that generates the intermediate sizes is wp_generate_attachment_metadata.

If you just want to upload the file, you can use the wp_handle_sideload function directly and bypass the meta data and attachment generation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.