How to replace get_page_by_title() with WP_Query()
I have a function in a Wordpress plugin which downloads an image from an external URL and uploads it to the Media Library, but first it checks to make sure the file doesn’t already exist in the Media Library.