Function vanilla_theme_get_image_alt_html
Gets the best available string to be used as the alt attribute of an image in HTML. Returns one of the following, whichever is found first: alt, description, caption, title.
Parameters summary
integer |
$image_ID |
<p>The ID of the image as a WordPress attachment in the media library.</p> |
Return value summary
string
|
The alt of the image. |