I need to verify if the media-upload screen came from a click on the “feature image link” on the admin screen. How can i do it?
I’ve already change the way the uploader works , but I need to check this because there is a special flow for the featured image upload.
There is a filter for the html of the ‘postimagediv’ called ‘admin_post_thumbnail_html’.
There may be more elegant ways, but this works:
In your plugin / script check the querystring: