Created
July 6, 2018 19:12
-
-
Save kellenmace/8c4568efcf5cd488545f8a50186c8fcd to your computer and use it in GitHub Desktop.
Remote image file exists function usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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