acf_get_attachment_image()ACF 5.5.0

Deprecated since 6.3.2. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Return an image tag for the provided attachment ID

No Hooks.

Returns

false.

Usage

acf_get_attachment_image( $attachment_id, $size );
$attachment_id(int)
The attachment ID.
$size(string)
The image size to use in the image tag.
Default: 'thumbnail'

Changelog

Since 5.5.0 Introduced.
Deprecated since 6.3.2

acf_get_attachment_image() code ACF 6.8.8

function acf_get_attachment_image( $attachment_id = 0, $size = 'thumbnail' ) {
	// report function as deprecated
	_deprecated_function( __FUNCTION__, '6.3.2' );
	return false;
}