Skip to content

Instantly share code, notes, and snippets.

@kellenmace
Created July 6, 2018 19:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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