function filter_image_sizes( $sizes) { unset( $sizes['1536×1536']); // disable 2x medium-large size unset( $sizes['2048×2048']); // disable 2x large size return $sizes; } add_filter('intermediate_image_sizes_advanced', 'filter_image_sizes'); I check…
I’m developing a child theme (mms-child) based on a simple parent (mms – also my dev). I am quite used to the usual way of defining custom image sizes within functions.php
as follows:
I’ve followed this article to use Media Uploader in my code. When I click the Browse button on my form, the media uploader opens and after selecting the image, I get the URL of that image added in my form field. No issues so far.