How to get the attachment_id by using the attachment URL?
I had a problem, where i needed the attachment ID for a customized autoset featured image function but I only knew the url of an image in the wordpress media library. There is no built in function in wordpress to…