Function vanilla_theme_get_image_src
Gets the url of a given image. Convenience function because WordPress does not have a direct way of returning this in one single function call.
Parameters summary
integer |
$image_ID |
<p>The ID of the image as a WordPress attachment in the media library.</p> |
string |
$image_size = 'thumbnail' |
<p>The image size being sought, ie thumbnail, medium, large, full, etc. Default is thumbnail.</p> |
Return value summary
string|boolean
|
The url of the image, or false, if no image is available. |