WordPress at a glance
function is not described

get_attachment_innerHTML() WP 2.0.0

Deprecated from version 2.5.0. It is no longer supported and can be removed in future releases. Use wp_get_attachment_image() instead.

Retrieve HTML content of image element.

Hooks from the function
Return

String|false. Null. Nothing.

Usage

get_attachment_innerHTML( $id, $fullsize, $max_dims );
$id(int)
Post ID.
$fullsize(true|false)
Whether to have full size image.
Default: false
$max_dims(array)
Dimensions of image.

Notes

  • See: wp_get_attachment_image()

Changelog

Since 2.0.0 Introduced.
Deprecated Since 2.5.0 Use wp_get_attachment_image()

Code of get_attachment_innerHTML() WP 5.7.1

<?php
function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) {
	_deprecated_function( __FUNCTION__, '2.5.0', 'wp_get_attachment_image()' );
	$id = (int) $id;
	if ( !$post = get_post($id) )
		return false;

	if ( $innerHTML = get_attachment_icon($post->ID, $fullsize, $max_dims))
		return $innerHTML;

	$innerHTML = esc_attr($post->post_title);

	return apply_filters('attachment_innerHTML', $innerHTML, $post->ID);
}