WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.