Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remote image file exists function usage
<?php
$image_url = 'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png';
if ( km_remote_image_file_exists( $url ) ) {
echo 'The remote image exists! Hooray!';
} else {
echo 'The remote image does not exist. Boooooo.';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment