Is it possible to determine when user is at “Media > Add New” vs “Post > Add an Image”
I answered this for you in the comments of your previous question. …you can use the filter that @Backie suggested above (intermediate_image_sizes_advanced), and in the hooked function check for a field in the post collection named _wp_http_referer. It tells you where the upload request came from. If _wp_http_referer contains “media-new.php”, you can return an empty … Read more