Often times I need to get the URL of a specific image in the media library but I am not doing it in the context of a PHP script. I need to put a element in in a widget that doesnt have WYSIWYG, or give the URL to an 3rd party affiliate, or something like that. I know I can get the original URL from the media library. Is there a pattern that that WordPress uses to get the URL of a specific image size (like thumbnail or medium)?
If I had an image in the media library at,
... what would the URL of the thumbnail be?
I tried things like appending
_medium to the filename, before the extension, but none work.