Is there any way in Wordpress to prevent content editors from selecting the "Full size" option when inserting images to a post? I've already tried Wordpress Prevent Users from posting full size image uploads but one this doesn't seem to be working (last active in 2010).
Incase you don't want hardcoded sizes, try this in your functions.php:
add_filter('image_size_names_choose', function($sizes)
{
unset($sizes['full']);
return $sizes;
});
References:
image_size_input_field()If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With