user1117313
user1117313

Reputation: 1985

Wordpress: stop uploading full size image

When I upload any image in the wordpress post, it uploads the full size image also. Is there a way to stop it uploading the full size image? I know I can add function to unset the thumbnails, for example

unset( $sizes['thumbnail']);
unset( $sizes['medium']);

but following doesnt work

unset( $sizes['full']);

Please let me know how can I stop uploading the full size image. Thanks.

Upvotes: 0

Views: 1288

Answers (1)

Milap
Milap

Reputation: 7231

This is exactly what you are looking for.

Wordpress Prevent Users from posting full size image uploads

The only difference is that changed from inbuilt WordPress function is that we're calling MY_image_size_input_fields instead of image_size_input_fields.

also see this : http://www.studiograsshopper.ch/code-snippets/remove-wordpress-defaultmedia-image-sizes/

Upvotes: 2

Related Questions