Is there a possible way to get the alt text from the media file by just knowing the URL? For example, if the path to my image is
/bc/wp-content/uploads/placeholder-image.png is there a way (just by using that URL) to get the alt text of that image. I know you usually need the ID and such, trying to find a way around this.
<img src="/bc/wp-content/uploads/placeholder-image.png" alt="<?php /* do something */ ?>" />