WordPress – Get Attachment Id through Image url

There are many cases we might require the attachment id using the image path. Use the below function in functions.php of theme.


Hire me at

Leave a Comment