Get attachment or image id by url – WordPress
Today I will talk about one non-standard task that WordPress can't do by default., namely, to take from the database the ID of the picture (or other investment) by her URL. This task is often needed when developing plugins....