Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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